AWS CDK - Generate and Validate Cert in us-east-1 #23931
-
Hi When using the aws-cdk - I noticed that DnsValidatedCertificate was not deprecate. It mentions to use Certificate instead. With DnsValidatedCertificate, I could specify the AWS region which is important. I was wondering is it possible to specify that the cert is created in us-east-1 even though my other infrastructure is being created in eu-west-1? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 2 replies
-
Hi @damogallagher, I also facing this when I deploy to eu regions. There will be no issues if your infrastructure is hosted in eu-west-1 and the region of Best, |
Beta Was this translation helpful? Give feedback.
-
Hi @fynnfluegge Thanks for getting back to me. Thank you |
Beta Was this translation helpful? Give feedback.
-
I am not sure, but I think you cannot specify the region in certificate constructs because the CA belongs to us-east-1 anyways. So, it does not matter. But I always created my hosted zones out of the cdk infrastructure code and do a lookup, because it rarely changes and the whole infrastructure is hosted in eu-central-1. Maybe that helps:
|
Beta Was this translation helpful? Give feedback.
-
found the related PR to this issue #21982, maybe the comments in PR will help |
Beta Was this translation helpful? Give feedback.
-
I created a pull request to undo the deprecation of DnsValidatedCertificate |
Beta Was this translation helpful? Give feedback.
-
Please provide us with a way of creating a certificate in us-east-1 from a stack that is not in us-east-1. The custom resource functionality in DnsValidatedCertificate provides this using custom resources - something that is very convenient. Please do not take this away without giving us an equally useable alternative. |
Beta Was this translation helpful? Give feedback.
-
this really feels like a step backwards
is just so much more convenient, compared to creating a extra stack, just to work around the region issue, when having to deal with cloudfront, and infra deployed in EU regions. |
Beta Was this translation helpful? Give feedback.
-
We have a feature request open for a new construct which will handle the creation of the Certificate from any region (by abstracting away the requirement to create a stack in You can still use I'd appreciate it if we could keep discussion around this in the feature request I've linked. It will help consolidate discussion, and also more people will be able to see that feature request and give it a thumbs up, which we use to help us decide what to work on |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
be sure to upvote this or thumbs up it or mark it as an answer so others know it works ... only if it works for you of course ... this way we can save others weeks of trying to figure this out I have figured out a solution and i posted it here in this issue #9274 (comment) |
Beta Was this translation helpful? Give feedback.
We have a feature request open for a new construct which will handle the creation of the Certificate from any region (by abstracting away the requirement to create a stack in
us-east-1
), and we'd be willing to review a PR that implements this.You can still use
DnsValidatedCertificate
- deprecation here just means that we won't continue developing on it anymore because it's not the direction we want to continue to head in. However, you should still be able to use it for a long time to come, as we don't have any official plans for av3
.I'd appreciate it if we could keep discussion around this in the feature request I've linked. It will help consolidate discussion, and also more people wil…