1 Answer
- Newest
- Most votes
- Most comments
0
According to the associate-alias documentation:
With this operation you can move an alias that’s already in use on a CloudFront distribution to a different distribution in one step. This prevents the downtime that could occur if you first remove the alias from one distribution and then separately add the alias to another distribution.
You should use the update-distribution command. Or set the alias(es) when you create the distribution.
Relevant content
- Accepted Answerasked a year ago
- Accepted Answerasked 2 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Can you post the CLI command you are submitting?
Sure, aws cloudfront associate-alias --target-distribution-id <distribution-id> --alias myname.domain.com