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
CodePudding user response:
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