Open tomyates opened 2 years ago
Anyone got any thoughts? Thinking I could write a script to add the cnames to cloudfront after sls deploy
?
Solved this issue by just creating a new CloudFront instance for all the alternative domains which pointed to the same s3 bucket.
I have the following serverless.yaml:
When I run
sls deploy
it wipes any alternative domains I've added in cloudfront and I have to re-add them manually. Is there a way of setting this alternative domains in the serverless.yaml file?