CloudFront/ACM: throw if certificate is not in us-east-1 #3464
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
in-progress
This issue is being actively worked on.
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
The CDK currently doesn't check that the ACM certificates used in CloudFront distributions are in the
us-east-1
region. It's only when CloudFormation tried to add it that the following error fails the stack creation:What is the expected behavior (or behavior of feature suggested)?
Check that the certificate provided in the
acmCertRef
property is in theus-east-1
region, whether it is generated in the stack or imported.What is the motivation / use case for changing the behavior or adding this feature?
Despite knowing about it, I keep forgetting to add the
region: 'us-east-1'
property. I imagine it also happens to new users on a regular basis. It's even more frustrating because the CloudFormation rollback fails when trying to remove thecertificateCertificateRequestorResource
.Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
Possibly part of #572
The text was updated successfully, but these errors were encountered: