'What is the downtime for deleting and recreting cloudfront using AWS CDK?
I am migrating AWS CDK CloudfrontWebDistribution construct to Distribution Construct but as per docs CDK will delete and recreate the distribution, I want to know how much time this whole process will take? what is the downtime I will have?
docs for reference -> https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html#migrating-from-the-original-cloudfrontwebdistribution-to-the-newer-distribution-construct
Solution 1:[1]
The downtime can be anywhere from minutes to hours. It all depends on the how your clients use the CloudFront distribution.
I'd recommend proceeding in the following steps:
- Create a brand new distribution, using your new CDK constructs. Keep the old one running.
- Swap the DNS name used by your clients. And wait for them to be updated
- Kill the old distribution
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | miensol |
