serverless-certificate-creator
serverless-certificate-creator copied to clipboard
How to force creation of cert?
Hi,
Thanks for such a useful plugin. I have an issue with it though. I already have a wildcard cert for that domain in my account but want to create another one with different Name tag.
Here is what I'm getting:
Serverless: serverless-certificate-creator version 1.3.0 called
Serverless: Trying to create certificate for *.example.com in us-east-1 ...
Serverless: Certificate for *.example.com in us-east-1 already exists with arn "arn:aws:acm:us-east-1:123456789123:certificate/87a97ab2-64a5-4090-32456-231212312". Skipping ...
Serverless: Writing certificate info to certs/prod/testcertwild.example.com./cert-info.yml
Also when trying to create another certificate with new certificateName but similar subjectAlternativeNames and I get this error:
'[Tried to create resource record set [name='_dcaa534ab8eb68ac9992e75bda044e5f.testcert2.subdomain.example.com.', type='CNAME'] but it already exists]',
How can I force creation of the new Cert anyway? Sometimes you need to create parallel certs and you can do it via the console but unfortunately not via the serverless-certificate-creator plugin :(
Btw, I've noticed that you're creating CNAMEs in Domain and it's Sub-Domains too. For example: If you're trying to create cert for *.example.com and SANs: test1.subdomain1.example.com, test2.subdomain2.example.com
Your plugin will create validation CNAMES in example.com HostedZone for all 3 domains and separate single CNAMES in subdomain1.example.com and subdomain2.example.com - I think you only need 1 CNAME for *.example.com in example.com HostedZone and single CNAMEs in each HostedZone for subdomains: subdomain1.example.com and subdomain2.example.com