Skip to content

Issue with documentation when trying to remove an applied Continuous Deployment policy. #7417

@boriorda-git

Description

@boriorda-git

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)

Links

https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudfront/command/UpdateDistributionCommand/

Metadata

Metadata

Assignees

Labels

documentationThis is a problem with documentation.p2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.service-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions