I am writing a Cloudformation template to request an ACM certificate for the Cloudfront to have SSL via DNS
My template:
ACMCertificate:
Type: "AWS::CertificateManager::Certificate"
Properties:
DomainName: mywebsite.com
SubjectAlternativeNames:
- www.mywebsite.com
DomainValidationOptions:
- DomainName: mywebsite.com
HostedZoneId: !Ref MyHostedZoneId
- DomainName: www.mywebsite.com
HostedZoneId: !Ref MyHostedZoneId
ValidationMethod: DNS
Outputs:
ACMCertificateArn:
Value: !Ref ACMCertificate
The issue: the certificate was created in the region of the AWS account, in my case it's eu-west-1
. You know that this certificate can not be used for SSL, need to be created in us-east-1
How to specify the region in the Cloudformation template for validating the ACM certificate?
Any suggestion is appreciated.