ZoneVpcAssociation
Source:
src/AWS/Route53/ZoneVpcAssociation.ts
An association between an additional VPC and a private hosted zone.
A private hosted zone is created with one initial VPC (see
HostedZone.vpc); ZoneVpcAssociation attaches further VPCs so their DNS
resolvers can answer from the zone. For a VPC in a different account, the
zone owner must first create a VpcAssociationAuthorization for it.
The initial VPC of a private zone cannot be modeled with this resource — Route 53 refuses to disassociate the last VPC from a private zone.
Associating VPCs
Section titled “Associating VPCs”const zone = yield* HostedZone("InternalZone", { name: "internal.example.com", privateZone: true, vpc: { vpcId: primary.vpcId, vpcRegion: "us-west-2" },});
const association = yield* ZoneVpcAssociation("SecondaryVpc", { hostedZoneId: zone.id, vpcId: secondary.vpcId, vpcRegion: "us-west-2",});