Skip to content

Commit a78012d

Browse files
authored
feat: Replace DelegationSetId with full DelegationSet in aws_route53_hosted_zones (#12737)
#### Summary The default (not reusable) DelegationSet of AWS public HostedZones are only visible when describing the HostedZone. The DelegationSet API doesn't include them. Sync should include the DelegationSet as a json field of the `aws_route53_hosted_zones` table so changes in Nameservers can be detected. <!--
1 parent 28db7f2 commit a78012d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

plugins/source/aws/resources/services/route53/hosted_zones.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func fetchRoute53HostedZones(ctx context.Context, meta schema.ClientMeta, parent
7979
HostedZone: h,
8080
Tags: client.TagsToMap(getTags(*h.Id, tagsResponse.ResourceTagSets)),
8181
DelegationSetId: delegationSetId,
82+
DelegationSet: gotHostedZone.DelegationSet,
8283
VPCs: gotHostedZone.VPCs,
8384
}
8485
}

plugins/source/aws/resources/services/route53/models/route53.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ type Route53HostedZoneWrapper struct {
66
types.HostedZone
77
Tags map[string]string
88
DelegationSetId *string
9+
DelegationSet *types.DelegationSet
910
VPCs []types.VPC
1011
}

website/tables/aws/aws_route53_hosted_zones.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The following tables depend on aws_route53_hosted_zones:
2929
|resource_record_set_count|`int64`|
3030
|tags|`json`|
3131
|delegation_set_id|`utf8`|
32+
|delegation_set|`json`|
3233
|vpcs|`json`|
3334

3435
## Example Queries

0 commit comments

Comments
 (0)