Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid redundant domain name entry #215

Open
wants to merge 1 commit into
base: cdk2
Choose a base branch
from

Conversation

pmeinhardt
Copy link

Previously, the first domain name was passed to the DnsValidatedCertificate construct twice.

In the domainName prop and again in the subjectAlternativeNames.

For example, when using new StaticWebsite(app, "Website", { domainNames: ["example.org"], … }), the wildcard domain *.example.org was specified twice.

For reference, see the corresponding code in DnsValidatedCertificate.

There is one thing I was not able to verify yet. The value of subjectAlternativeNames is used in one more place in the DnsValidatedCertificate construct:
https://github.com/aws/aws-cdk/blob/v2.153.0/packages/aws-cdk-lib/aws-certificatemanager/lib/dns-validated-certificate.ts#L147

The custom resource also receives domainName separately, but I couldn't tell whether removing it from the subjectAlternativeNames might have any side effects here.

Kind regards,
Paul

Previously, the first domain name was passed to the
`DnsValidatedCertificate` construct twice.

In the `domainName` prop and again in the `subjectAlternativeNames`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant