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

CloudFront/ACM: throw if certificate is not in us-east-1 #3464

Closed
1 of 5 tasks
nmussy opened this issue Jul 29, 2019 · 2 comments · Fixed by #4579
Closed
1 of 5 tasks

CloudFront/ACM: throw if certificate is not in us-east-1 #3464

nmussy opened this issue Jul 29, 2019 · 2 comments · Fixed by #4579
Assignees
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.

Comments

@nmussy
Copy link
Contributor

nmussy commented Jul 29, 2019

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 ...

    • 🪲 bug report
    • 🚀 feature request
    • 📚 construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • 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:

The specified SSL certificate doesn't exist, isn't in us-east-1 region, isn't valid, or doesn't include a valid certificate chain.
  • What is the expected behavior (or behavior of feature suggested)?
    Check that the certificate provided in the acmCertRef property is in the us-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 the certificateCertificateRequestorResource.

  • Please tell us about your environment:

    • CDK CLI Version: 1.2.0
    • Module Version: 1.2.0
    • OS: all
    • Language: all
  • 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

@nmussy nmussy added the needs-triage This issue or PR still needs to be triaged. label Jul 29, 2019
@NGL321 NGL321 added feature-request A feature should be added or improved. good first issue Related to contributions. See CONTRIBUTING.md @aws-cdk/aws-cloudfront Related to Amazon CloudFront and removed needs-triage This issue or PR still needs to be triaged. labels Jul 29, 2019
@NGL321
Copy link
Contributor

NGL321 commented Jul 29, 2019

Hey @nmussy,

Thank you for the clear issue submission as always! 😸
We will update this issue when someone is able to look into it!

@nmussy
Copy link
Contributor Author

nmussy commented Jul 29, 2019

No problem! I think I could give it a try tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
4 participants