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
[v2] In WAF, Managed Rules are not correctly generated #578
Comments
Thanks for the report. This might be a bug or a implementation detail I missed when I migrated to v2. I'm going to have to look into this when I have a moment. Could you share the Cfn code generated out of v1 as well, for comparison |
Alright, I'm using this configuration both for v1 and v2. FYI, the WAF configuration is working fine except for the managed rules.
This is generated by v1.
by v2
|
To address this issue, I'm posting my code change. Will test on my env with WAF in few days. |
Hello, I'm migrating appsync plugin from v1 to v2. Thanks for great plugin and well described migration document.
Just one question, based on the migration document, I changed
wafConfig
towaf
, but I'm still getting an error to configure managed rules in waf section.I had checked the generated cloud formation then found
overrideAction
is ignored in v2."Action": { "Allow": {} }
, is set to managed rule forcefully, it's invalid.Is this bug or does v2 have another syntax to configure managed rule?
https://github.com/sid88in/serverless-appsync-plugin/pull/476/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L528
Generated cloud formation by v2 from above configuration
The text was updated successfully, but these errors were encountered: