mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
A RecordSetGroup writes all its record sets into one hosted zone in a single ChangeResourceRecordSets batch, so a record set that cannot be written, such as a name another owner already holds, leaves the zone unchanged and fails the stack. Each record set keeps what a RecordSet keeps, including the routing-policy fields SetIdentifier, Weight, Region, Failover and HealthCheckId; entries an Fn::If resolves to AWS::NoValue are dropped, and two record sets with one name, type and set identifier are refused. Ref returns the group's logical ID and Fn::GetAtt Id the change ID that GetChange reads, as AWS documents. The zone comes from the group's HostedZoneId or HostedZoneName, or from its record sets when the group names neither. A record set that repeats the group's HostedZoneId is refused, as AWS documents, and so is one that names another zone. An update in the same zone deletes the records the group wrote and creates the new ones in one batch. HostedZoneId and HostedZoneName are create-only, so a change set reports a zone change as a replacement: the records are written into the new zone, and the old ones are deleted once the update commits, or kept under UpdateReplacePolicy: Retain. A failed update puts back the records the group had; after a zone change the group first points at its old records again, then deletes the new zone's. If that delete fails, ContinueUpdateRollback retries it and DeleteStack deletes those records while the rollback is unfinished; anything else leaves them in their zone, since Route 53 cannot tell them apart from an identical record another writer puts there later. Deletes name the values the group wrote, so a record changed outside the stack fails the delete rather than being removed. The docs say what a record set group's failed rollback leaves behind. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>