Skip to content

Certificate

Source: src/AWS/ACM/Certificate.ts

An ACM certificate for CloudFront and other AWS endpoints.

Certificate requests an ACM certificate in us-east-1, which is the region required for CloudFront viewer certificates. When hostedZoneId is provided for DNS validation, the provider creates or updates the Route 53 validation records and waits for the certificate to be issued.

DNS-Validated Certificate

const cert = yield* Certificate("WebsiteCertificate", {
domainName: "www.example.com",
hostedZoneId: "Z1234567890",
});

Certificate With SANs

const cert = yield* Certificate("WebsiteCertificate", {
domainName: "example.com",
subjectAlternativeNames: ["www.example.com"],
hostedZoneId: "Z1234567890",
});