DnsValidatedCertificate (deprecated) -> Certificate migration steps? #23952
-
I noticed that DnsValidatedCertificate has been deprecated in favour of Certificate. What are the steps to migrate from DnsValidatedCertificate to Certificate without any downtime of the certificates? I have tried changing the following code: const serverWildcardCertificate = new acm.DnsValidatedCertificate(
this,
envName("server-wildcard-certificate", envShortName),
{
domainName: wildcardDomainName,
hostedZone,
cleanupRoute53Records: !isMainAccount
}); Which I changed to the following: const serverWildcardCertificate = new acm.Certificate(
this,
envName("server-wildcard-certificate", envShortName),
{
domainName: wildcardDomainName,
region: this.region,
validation: acm.CertificateValidation.fromDns(hostedZone)
}); But I get the following error:
I don't see a property for changing the region. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
This may be answered by a response to #23931 |
Beta Was this translation helpful? Give feedback.
-
That's pretty awful in terms of usability.
…On 4 Feb 2023, 07:40, at 07:40, Adam Fisher ***@***.***> wrote:
@ChrisLane we now need to create a separate `us-east-1` stack
containing the certificate before we use the certificate in another
region.
--
Reply to this email directly or view it on GitHub:
#23952 (reply in thread)
You are receiving this because you were mentioned.
Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Copying my comment from #23931 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.
Copying my comment from #23931
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 discu…