Skip to content

fix(route53): model HostedZoneConfig.hostedZoneTier - #208

Merged
discount-elf merged 1 commit into
mainfrom
fix/route53-hostedzone-tier
Nov 19, 2026
Merged

discount-elf merged 1 commit into
mainfrom
fix/route53-hostedzone-tier

Conversation

@discount-elf

Copy link
Copy Markdown
Contributor

Problem

The route53-hostedzone conformance test fails on main (job) at Replace:

Property HostedZoneConfig.HostedZoneTier is not expected and not a provider default (after replace)

AWS added HostedZoneTier to AWS::Route53::HostedZone. The plugin's HostedZoneConfig only models comment, so the harness treats the new field as unexpected.

In that run only the replacement zone read back with the field. The zone created a few minutes earlier did not, which is why Create, Verify, Extract, Sync and Update passed. Until the field is modelled, the failing phase can vary from run to run.

Change

  • schema/pkl/route53/hostedzone.pkl: add hostedZoneTier to HostedZoneConfig, typed "STANDARD"|"ADVANCED" to match the enum in the live CloudFormation type schema, with hasProviderDefault = true. It is not in the type's createOnlyProperties, so it is not marked create-only.
  • schema/provider-default-dispositions.json: add the row TestProviderDefaultDispositionsManifest requires, as keep pinned to documentation.

Verification

  • make test-unit passes
  • Pkl manifest validation, make verify-schema and make verify-examples pass
  • All three route53-hostedzone fixtures render, and HostedZoneConfig.HostedZoneTier is emitted with HasProviderDefault = true
  • Read through Cloud Control, all three existing public zones in the test account report HostedZoneTier: STANDARD, including two that have no other config
  • The live conformance test was not run. This PR touches no fixture, so PR CI will not run it either.

For the reviewer

  • The CloudFormation description for HostedZoneTier is empty, so the documentation pin rests on the observed STANDARD default rather than on a documented one. Change the row to pending if that is not enough for keep.
  • Cloud Control also returns a top-level HostedZoneFeatures object, populated with defaults, for every zone. The plugin does not model it and the conformance run did not flag it. It is left out here.

AWS added HostedZoneTier (STANDARD or ADVANCED) to
AWS::Route53::HostedZone and returns STANDARD for a zone created without
it. The schema did not know the field, so the route53-hostedzone
conformance test failed Replace with

  Property HostedZoneConfig.HostedZoneTier is not expected and not a
  provider default

Only the replacement zone read back with the field in that run; the zone
created a few minutes earlier did not, so which phase fails can vary.

The field is now modelled as a provider default and recorded in the
dispositions manifest. It is not create-only in the CloudFormation
schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant