Skip to content

Commit

Permalink
Include subdomains in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehnix committed Oct 8, 2023
1 parent 795e31c commit 1b3ddd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posts/2023-10-07-the-stack-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ export class Stack extends cdk.NestedStack {
zoneName: props.domain,
});

// Set up an ACM certificate for the domain, and validate it using DNS.
// Set up an ACM certificate for the domain + subdomains, and validate it using DNS.
new acm.Certificate(this, "Certificate", {
domainName: props.domain,
subjectAlternativeNames: [`*.${props.domain}`],
validation: acm.CertificateValidation.fromDns(hostedZone),
});
}
Expand Down

0 comments on commit 1b3ddd8

Please sign in to comment.