-
Notifications
You must be signed in to change notification settings - Fork 632
Description
Describe the issue
A customer complained about the description of step 3 in the provided link when attempting to remove a Continuous Deployment Policy:
The description on CloudFront UpdateDistributionCommand suggesting CloudFront will not merge the new config with the existing config. However, I was trying to update the distribution with the same config but omitted the ContinuousDeploymentPolicyId (I just want to de-associate the CDP from the Live distribution), CF seems to ignored it and treated it as "no change". It only worked when I explicitly change the ContinuousDeploymentPolicyId to be ""
The context was:
CDP was disabled, I wanted to update the distribution with no CDPid in the config. (So that I can remove CDP without deleting staging distribution)
but CF ignored the fact the new config doesn't have CDPid.
I managed to update the distribution by giving empty string to CDPid in the new config payload.
My workflow is:
List continuous Deployment policy
Get continuous Deployment policy for the ETag1
Update Continuous Deployment Policy to disable (use ETag1)
Get continuous Deployment policy for the ETag2
Update Distribution without continuous Deployment policy Id
Delete Continuous Deployment Policy (use ETag2)