CmdID / aws / aws cloudfront
aws cloudfront disassociate-distribution-web-acl
Disassociates a distribution from the WAF web ACL. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To disassociate a web ACL from a CloudFront distribution
The following disassociate-distribution-web-acl example removes the association between a web ACL and a CloudFront distribution with ETag E13V1IB3VIYABC.
aws cloudfront disassociate-distribution-web-acl --id E1XNX8R2GOAABC --if-match EEZQ9Z24VM1ABCIdentify--idThe ID of the distribution.--if-matchThe value of the ETag header that you received when retrieving the distribution that you're disassociating from the WAF web ACL.Its output
{
"ETag": "E2YWS1C2J3OABC",
"Id": "E1XNX8R2GOAABC"
}For more information, see Disable AWS WAF security protections in the Amazon CloudFront Developer Guide.
Options
--idThe ID of the distribution.--if-matchThe value of the ETag header that you received when retrieving the distribution that you're disassociating from the WAF web ACL.