feat(cloudfront): support WAF security protections#32021
feat(cloudfront): support WAF security protections#32021phuhung273 wants to merge 22 commits intoaws:mainfrom
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
c6c0cda to
48b4c10
Compare
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
Doesn't the WebACL have to be deployed in |
Yes of course for |
|
So what happens if the distribution isn't in |
I believe there is no region config for CloudFront Distribution as it is a global resource https://repost.aws/questions/QUM6TvAnMOQ8q8Ej_0-rh_pw/is-cloudfront-works-only-in-virginia-region-us-east-1#AN3zwt4flvSRiXuPaQNWDHKg |
I meant what happens if a user sets |
Ok got your point now, in that case every other components in the stack will be provisioned in selected region. But the CloudFront Distribution will always be in global scope. But if we want to associate an |
Wouldn't it try to deploy the |
|
@gshpychka youre rite, lemme have a test deploying entire stack to another region |
48b4c10 to
6fe8d5e
Compare
Thanks so much for pointing that out. You're absolutely right. Confirm that Looking through Issues, found this similar one #6242. Added validation to ensure new flag cannot be used outside |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state. |
1 similar comment
|
This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Hi all, I've found a similar implementation for creating a cloufront WebAcl #10500 which satisfy 2 requirements:
Although we can replicate the same, I think better to finish off #17749 and reuse WebAcl L2 Contruct here. |
|
Comments on closed issues and PRs are hard for our team to see. |


Issue # (if applicable)
Closes #31737
Reason for this change
Description of changes
enableWafCoreProtectionsboolean to use default WAF security optionDescription of how you validated changes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license