Migrate AwsAmplify Domain to Cloudfront + S3

0

Currently im using AWS Amplify for my frontend application where "abc.io" domain is registered, Due to charged incur i am planning to change the service to s3 for storage and deliver the content with Cloudfront. I need to migrate the domain used by amplify to cloudfront domain. Within a same hosted zone amplify also used cloudfront "XXXXXXX.cloudfront.net." value. Tried to add CNAME in cloudfront but saying already exists on hosted zone my actual cloudfront domain to use is "YYYYYYYY.cloudfront.net" so how to do this any suggestion?

1 Answer
0

You can't use the same CNAME alias for more than one CloudFront distribution. When the CNAME alias that you want to add is already associated with another CloudFront distribution, you receive the following an example error:

"One or more of the CNAMEs you provided are already associated with a different resource. (Service: AmazonCloudFront; Status Code: 409; Error Code: CNAMEAlreadyExists; Request ID: a123456b-c78d-90e1-23f4-gh5i67890jkl*"

Please refer below link for resolution. https://repost.aws/knowledge-center/resolve-cnamealreadyexists-error

AWS
Billy
answered 12 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions