- Newest
- Most votes
- Most comments
To resolve this issue and delete your Web ACL, you'll need to follow these steps:
-
First, you need to address the CloudFront distribution issue. Since the S3 bucket associated with the CloudFront distribution's logging has been deleted, you can't simply update it through the console.
-
You'll need to use the AWS CLI or AWS SDK to update the CloudFront distribution. Specifically, you should disable logging for the distribution. This can be done by updating the distribution configuration and setting the logging to 'disabled' or removing the logging configuration entirely.
-
Once you've successfully updated the CloudFront distribution to disable logging, you should be able to disassociate the Web ACL from the CloudFront distribution through the AWS WAF console.
-
After disassociating the Web ACL from all resources, including the CloudFront distribution, you'll be able to delete the Web ACL.
-
If you still encounter issues, you may need to delete the CloudFront distribution entirely and recreate it with the correct logging configuration or without logging.
-
As a final step, if you want to re-enable logging for your CloudFront distribution, create a new S3 bucket for this purpose and update the distribution's configuration to use the new bucket.
Remember to be cautious when making these changes, as they can affect your application's functionality. It's always a good idea to have backups and to test changes in a non-production environment first if possible.
If you continue to face issues after trying these steps, you may need to escalate the issue with AWS Support, providing them with the specific error messages and actions you've taken.
Sources
Deleting a Web ACL - AWS WAF, AWS Firewall Manager, and AWS Shield Advanced
Deleting a web ACL - AWS WAF, AWS Firewall Manager, and AWS Shield Advanced
Disassociating a web ACL from an AWS resource - AWS WAF, AWS Firewall Manager, and AWS Shield Advanced
Relevant content
asked 3 years ago
asked 7 years ago
- AWS OFFICIALUpdated a year ago
