Repository navigation
feat(#1613, #1586): Route 53 GetChange, health checks, tags, ListHostedZonesByName; batch-atomic change validation - #1705
Merged
Merged
Conversation
3 tasks
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
scttfrdmn
force-pushed
the
feat/v0134-route53
branch
from
November 25, 2026 00:11
17bd6c9 to
75b1610
Compare
scttfrdmn
added a commit
that referenced
this pull request
Nov 25, 2026
…edZonesByName; batch-atomic change validation GetChange reports every minted change with a seeded PENDING window; health checks with idempotent CallerReference, versions and seeded status; tag operations; ListHostedZonesByName and UpdateHostedZoneComment. Change batches are validated whole against the record sets they name, record sets are keyed by normalized name, type and SetIdentifier, and the CloudFormation record-set delete sends the stored values. Includes the #1705 review fixes. Co-Authored-By: Claude <[email protected]>
This was referenced Nov 25, 2026
…edZonesByName; batch-atomic change validation GetChange reports every minted change with a seeded PENDING window; health checks with idempotent CallerReference, versions and seeded status; tag operations; ListHostedZonesByName and UpdateHostedZoneComment. Change batches are validated whole against the record sets they name, record sets are keyed by normalized name, type and SetIdentifier, names are reported in Route 53's normalized form, and the CloudFormation record-set delete sends the stored values. Includes both #1705 review rounds. Co-Authored-By: Claude <[email protected]>
scttfrdmn
force-pushed
the
feat/v0134-route53
branch
from
November 25, 2026 00:49
75b1610 to
d56cedb
Compare
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.
Fixes #1586
Part of #1613: this is the Route 53 slice. STS/IAM federation, Lambda versions and EventBridge remain, in their own workstreams.
ChangeInfominted byCreateHostedZone,DeleteHostedZoneandChangeResourceRecordSetsis stored aschange:<id>with itsSubmittedAtandComment. A seeded PENDING→INSYNC progression (route53_change_progression.go, onprogression.go) is set throughPOST/DELETE /v1/route53/change-status, keyed by change ID (with or without/change/) or*, and is in the recorded control-plane group. The minting responses peek andGetChangeobserves. Unseeded, a change is INSYNC. An unknown change isNoSuchChange/404.dnsname/hostedzoneid/maxitems, withNextDNSName/NextHostedZoneId. A baddnsnameisInvalidDomainName/400, andhostedzoneidwithoutdnsnameisInvalidInput/400.ChangeTagsForResource,ListTagsForResourceandListTagsForResourcescover hosted zones and health checks, with at most 10 tags per resource (per API_ChangeTagsForResource). Tags live on the resource record. The Resource Groups Tagging API has no Route 53 scan, so the two views cannot disagree.GetHealthCheckCount.CallerReferenceis idempotent against the settings the create was sent with, which the caller-reference record stores. Different settings, or a deleted check's reference, areHealthCheckAlreadyExists/409. A live reference whose check is gone creates one.HealthCheckVersionincrements on each update, and a mismatch isHealthCheckVersionMismatch/409. An unknown ID isNoSuchHealthCheck/404.TooManyHealthChecksapplies past 200.GetHealthCheckStatuscomes from thePOST/DELETE /v1/route53/health-check-statusseed and is never computed. A CALCULATED check isInvalidInput.*.example.comand\052.example.comare one record set.ListResourceRecordSetsreports names in that form with a trailing dot, which is also what Terraform's provider normalizes to (internal/dns.Normalize).InvalidChangeBatchin AWS's bracketed wording (sources cited). This check runs before the apex check, so a CREATE of the existing apex SOA or NS says "already exists". An unreadableTTL/WeightisInvalidInput; see the comment on route53: ChangeResourceRecordSets applies a CREATE of an existing record set and a DELETE of a missing one #1586.p.mu, and a race test covers them.SetIdentifier/Weight/Region/Failover/HealthCheckId. The stack delete finds the record set by that identity, sends its stored values, and treats a miss as already gone.AWS::Route53::HealthChecksends a per-attemptCallerReference: a hash of the stack ARN and logical ID, plus a mint draw.NoSuchHealthCheckis incfnDeleteAbsentCodes.wire_validate_errors.golists them.Routed operations go from 1,171 to 1,184 (route53: 6 to 19), on top of #1704, #1703 and #1701.
Gates run locally after rebasing on 0073e2a:
make lint test e2e;docs-versions/docs-counts-check.SUBSTRATE_IAC=1 make iac-e2e(Terraform and CDK) also passed on 0073e2a. The VitePress build passed on f5db4ea.Terraform scratch check used provider 6.73.0 from the plugin cache. The config had a tagged mixed-case zone (
Scratch.Example.com), an A record, a*.wildcard record, an alias record targetingWWW.scratch.example.com, two weighted records (one with a health check) and an HTTPS health check. Apply added 7, a second plan was empty (exit 0), and destroy removed 7, leaving the state empty.The first run of that config found one more bug, which this PR fixes.
ListResourceRecordSetsrendered an empty<ResourceRecords/>for alias records, so Terraform's destroy sent the empty element back and validation refused it. Alias record sets now carry noResourceRecordselement.Follow-ups, not filed yet:
ListResourceRecordSetssort order andname/type/maxitemspaging.HealthCheckInUse.