Repository navigation
fix(route53): model HostedZoneConfig.hostedZoneTier - #208
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
route53-hostedzoneconformance test fails on main (job) at Replace:AWS added
HostedZoneTiertoAWS::Route53::HostedZone. The plugin'sHostedZoneConfigonly modelscomment, 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: addhostedZoneTiertoHostedZoneConfig, typed"STANDARD"|"ADVANCED"to match the enum in the live CloudFormation type schema, withhasProviderDefault = true. It is not in the type'screateOnlyProperties, so it is not marked create-only.schema/provider-default-dispositions.json: add the rowTestProviderDefaultDispositionsManifestrequires, askeeppinned todocumentation.Verification
make test-unitpassesmake verify-schemaandmake verify-examplespassroute53-hostedzonefixtures render, andHostedZoneConfig.HostedZoneTieris emitted withHasProviderDefault = trueHostedZoneTier: STANDARD, including two that have no other configFor the reviewer
HostedZoneTieris empty, so thedocumentationpin rests on the observedSTANDARDdefault rather than on a documented one. Change the row topendingif that is not enough forkeep.HostedZoneFeaturesobject, 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.