Just started working with the serverless framework, so very new.
I tried creating a serverless.yml file in the region: “ap-southeast-2” that:
- creates cloudfront
- creates SSL cert
- creates DNS entries in 53
- pushes all website files to S3 bucket.
it kept failing with the following:
“An error occurred while provisioning your stack: CDN - 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…”
Because the region was mentioned as the issue I tested changing the region to “us-east-1” and the deployment was successful. I changed nothing else in my yaml file. Is there any reason why the exact same deployment that is fully self contained (no dependencies on existing services except for the domain) would work in one region but not another?