-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-cdk-lib/aws-wafv2: CfnWebACL and Cloudformation properties not matching #23679
Comments
We fixed some issues related to Cfn resources since the version you're reporting this on. Could you please update versions to most recent? If that still doesn't work, could you post the full reproduction of creating this resource so that I can easily copy+paste? Thanks |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
similar #23709 |
@peterwoodworth I just updated to |
Sorry for not following up on this quickly. This behavior is actually a result of the changes I was describing earlier - |
Ok, yeah that's what I had actually done to work around it, didn't realize that was the recommended approach. Do you know why that was changed instead of using a defined type? |
As mentioned above, this was intentional. This occurred because the cfnspec caused a breaking change that changed it from being any type to being strongly typed. Sorry for any inconvenience, we're looking into making sure this doesn't happen again. |
|
Describe the bug
When we create a CfnWebACL with the rule specified below, we get the following Cloudformation error:
When trying to change it to
Name
as suggested, Typescript no longer compilesExpected Behavior
CfnWebACL allows a
Statement/ByteMatchStatement/FieldToMatch
rule with aName
property.Current Behavior
CDK expects the property
name
, while Cloudfront expects the propertyName
.Reproduction Steps
Create the CfnWebACL with the following rule
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.56.0
Framework Version
No response
Node.js Version
16
OS
macOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: