Resource definition
What this resource looks like
This is the CUE shape a Praxis template uses to declare a Route53HostedZone. The resource key is local to the template; metadata.name supplies its stable Praxis identity.
resources: zone: {
apiVersion: "praxis.io/alpha"
kind: "Route53HostedZone"
metadata: {name: "example.com", labels: {}}
spec: {
comment: "Production DNS"
tags: environment: "prod"
}
}Desired state
Configuration
The spec block accepts 4 fields. 0 are required by the schema; fields with defaults can be omitted.
isPrivateOptionalIs Private.
bool | *falsefalsecommentOptionalComment.
stringvpcsOptionalVpcs.
[...{ vpcId: string vpcRegion: string }]tagsOptionalTags.
[string]: stringObserved values
Outputs
Praxis records these values after observation. A dependent resource can read one with ${resources.<name>.outputs.<field>}.
hostedZoneIdStringnameStringnameServersList · optionalisPrivateBooleanrecordCountIntegerRead without ownership
Data-source lookup
A data block reads an existing Route53HostedZone and exposes its outputs without storing lifecycle state. The generic filter surface accepts id, name, and tag; supported combinations depend on the AWS identity used by this resource.
data: existing: {
kind: "Route53HostedZone"
filter: {
name: "replace-with-provider-name"
}
}idnametagAdopt existing infrastructure
Import
Import persists Praxis state for an existing AWS resource. For this kind, supply: Hosted zone ID, for example Z0123456789ABCDEF. The example starts in observed mode so Praxis reports drift without correcting it.
praxis import Route53HostedZone \
--id <provider-identifier> \
--account production \
--observeCanonical contract
Complete CUE schema
The field guide above is derived from this definition. The schema remains the source of truth for accepted values, defaults, validation constraints, and outputs in the current alpha revision.
Show the complete schema
package route53
#Route53HostedZone: {
apiVersion: "praxis.io/alpha"
kind: "Route53HostedZone"
metadata: {
name: string & =~"^[A-Za-z0-9][A-Za-z0-9.-]{0,253}[A-Za-z0-9]$"
labels: [string]: string
}
spec: {
isPrivate?: bool | *false
comment?: string
vpcs?: [...{
vpcId: string
vpcRegion: string
}]
tags?: [string]: string
}
outputs?: {
hostedZoneId: string
name: string
nameServers?: [...string]
isPrivate: bool
recordCount: int
}
}