Skip to content

Record

Source: src/AWS/Route53/Record.ts

A Route 53 DNS record set.

Record manages a single Route 53 record set using UPSERT for create and update operations, and waits for Route 53 change propagation before returning.

A Record Alias To CloudFront

const record = yield* Record("WebsiteAlias", {
hostedZoneId: "Z1234567890",
name: "www.example.com",
type: "A",
aliasTarget: {
hostedZoneId: distribution.hostedZoneId,
dnsName: distribution.domainName,
},
});

TXT Record

const record = yield* Record("VerificationRecord", {
hostedZoneId: "Z1234567890",
name: "_acme-challenge.example.com",
type: "TXT",
ttl: 60,
records: ["\"value\""],
});