Skip to content

ProfileAssociation

Source: src/AWS/Route53Profiles/ProfileAssociation.ts

An association between a Route 53 Profile and a VPC. Once the association completes, every DNS resource attached to the Profile (private hosted zones, Resolver rules, DNS Firewall rule groups) takes effect in the VPC.

A VPC can have only one Profile associated with it; a Profile can be associated with thousands of VPCs. The association is created immediately but completes asynchronously — the returned status is typically still CREATING when the deploy finishes.

import * as Route53Profiles from "alchemy/AWS/Route53Profiles";
const association = yield* Route53Profiles.ProfileAssociation("AppVpcDns", {
profileId: profile.profileId,
resourceId: vpc.vpcId,
});