Skip to content

Profile

Source: src/AWS/Route53Profiles/Profile.ts

An Amazon Route 53 Profile — a reusable container of DNS configuration (private hosted zones, Resolver rules, and DNS Firewall rule groups) that can be associated with many VPCs at once.

Attach DNS resources to the Profile with ProfileResourceAssociation and apply the whole bundle to a VPC with ProfileAssociation.

Basic Profile

import * as Route53Profiles from "alchemy/AWS/Route53Profiles";
const profile = yield* Route53Profiles.Profile("DnsProfile");

Profile with Tags

const profile = yield* Route53Profiles.Profile("DnsProfile", {
name: "shared-dns-config",
tags: { team: "platform" },
});
const vpc = yield* EC2.Vpc("AppVpc", { cidrBlock: "10.0.0.0/16" });
yield* Route53Profiles.ProfileAssociation("AppVpcDns", {
profileId: profile.profileId,
resourceId: vpc.vpcId,
});