-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Add JSON web ACL rule attribute #38309
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc PKG=wafv2 TESTS=TestAccWAFV2WebACL_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/wafv2/... -v -count 1 -parallel 20 -run='TestAccWAFV2WebACL_' -timeout 360m
=== NAME TestAccWAFV2WebACL_associationConfigCloudFront
web_acl_test.go:2907: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccWAFV2WebACL_associationConfigCloudFront (0.47s)
=== CONT TestAccWAFV2WebACL_ManagedRuleGroup_ManagedRuleGroupConfig_ACFPRuleSet
=== NAME TestAccWAFV2WebACL_CloudFrontScope
web_acl_test.go:3004: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccWAFV2WebACL_CloudFrontScope (0.47s)
=== CONT TestAccWAFV2WebACL_ByteMatchStatement_body
--- PASS: TestAccWAFV2WebACL_associationConfigRegional (35.89s)
=== CONT TestAccWAFV2WebACL_ByteMatchStatement_headerOrder
--- PASS: TestAccWAFV2WebACL_ruleJSON (58.23s)
=== CONT TestAccWAFV2WebACL_ByteMatchStatement_jsonBody
--- PASS: TestAccWAFV2WebACL_Update_nameForceNew (67.62s)
=== CONT TestAccWAFV2WebACL_RateBased_customKeys
--- PASS: TestAccWAFV2WebACL_basic (81.69s)
=== CONT TestAccWAFV2WebACL_ManagedRuleGroup_ManagedRuleGroupConfig
--- PASS: TestAccWAFV2WebACL_ByteMatchStatement_body (91.00s)
=== CONT TestAccWAFV2WebACL_RateBased_basic
--- PASS: TestAccWAFV2WebACL_ManagedRuleGroup_specifyVersion (91.53s)
=== CONT TestAccWAFV2WebACL_ByteMatchStatement_basic
--- PASS: TestAccWAFV2WebACL_GeoMatch_basic (99.16s)
=== CONT TestAccWAFV2WebACL_disappears
--- PASS: TestAccWAFV2WebACL_ByteMatchStatement_ja3fingerprint (101.28s)
=== CONT TestAccWAFV2WebACL_Update_ruleProperties
--- PASS: TestAccWAFV2WebACL_GeoMatch_forwardedIP (103.82s)
=== CONT TestAccWAFV2WebACL_IPSetReference_basic
--- PASS: TestAccWAFV2WebACL_RuleGroupReference_basic (116.87s)
=== CONT TestAccWAFV2WebACL_ManagedRuleGroup_ManagedRuleGroupConfig_BotControl
--- PASS: TestAccWAFV2WebACL_Custom_response (126.68s)
=== CONT TestAccWAFV2WebACL_minimal
--- PASS: TestAccWAFV2WebACL_RateBased_forwardedIP (127.07s)
=== CONT TestAccWAFV2WebACL_RateBased_maxNested
--- PASS: TestAccWAFV2WebACL_RuleGroupReference_shieldMitigation (127.19s)
=== CONT TestAccWAFV2WebACL_tokenDomains
--- PASS: TestAccWAFV2WebACL_LabelMatchStatement (128.34s)
=== CONT TestAccWAFV2WebACL_tags
--- PASS: TestAccWAFV2WebACL_ManagedRuleGroup_ManagedRuleGroupConfig_ATPRuleSet (132.03s)
=== CONT TestAccWAFV2WebACL_Update_rule
--- PASS: TestAccWAFV2WebACL_ByteMatchStatement_headerOrder (97.70s)
=== CONT TestAccWAFV2WebACL_RuleLabels
--- PASS: TestAccWAFV2WebACL_disappears (47.68s)
=== CONT TestAccWAFV2WebACL_Operators_maxNested
--- PASS: TestAccWAFV2WebACL_ManagedRuleGroup_ManagedRuleGroupConfig_ACFPRuleSet (149.67s)
--- PASS: TestAccWAFV2WebACL_ByteMatchStatement_jsonBody (96.46s)
--- PASS: TestAccWAFV2WebACL_Custom_requestHandling (156.98s)
--- PASS: TestAccWAFV2WebACL_ManagedRuleGroup_ManagedRuleGroupConfig_BotControl (45.20s)
--- PASS: TestAccWAFV2WebACL_IPSetReference_basic (59.51s)
--- PASS: TestAccWAFV2WebACL_RuleGroupReference_manageShieldMitigationRule (163.83s)
--- PASS: TestAccWAFV2WebACL_IPSetReference_forwardedIP (164.94s)
--- PASS: TestAccWAFV2WebACL_minimal (42.11s)
--- PASS: TestAccWAFV2WebACL_ManagedRuleGroup_ManagedRuleGroupConfig (91.97s)
--- PASS: TestAccWAFV2WebACL_tokenDomains (48.93s)
--- PASS: TestAccWAFV2WebACL_RateBased_maxNested (49.21s)
--- PASS: TestAccWAFV2WebACL_ByteMatchStatement_basic (85.14s)
--- PASS: TestAccWAFV2WebACL_RateBased_basic (87.12s)
--- PASS: TestAccWAFV2WebACL_ManagedRuleGroup_basic (179.08s)
--- PASS: TestAccWAFV2WebACL_Operators_maxNested (36.93s)
--- PASS: TestAccWAFV2WebACL_RuleLabels (58.01s)
--- PASS: TestAccWAFV2WebACL_Update_rule (61.74s)
--- PASS: TestAccWAFV2WebACL_Update_ruleProperties (95.91s)
--- PASS: TestAccWAFV2WebACL_tags (74.30s)
--- PASS: TestAccWAFV2WebACL_RateBased_customKeys (196.13s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/wafv2 269.689s
```console % go test -count=1 -v ./internal/service/wafv2/... -run="Test_expandWebACLRulesJSON" --- PASS: Test_expandWebACLRulesJSON (0.00s) --- PASS: Test_expandWebACLRulesJSON/empty_string (0.00s) --- PASS: Test_expandWebACLRulesJSON/single_null_object (0.00s) --- PASS: Test_expandWebACLRulesJSON/empty_array (0.00s) --- PASS: Test_expandWebACLRulesJSON/single_empty_object (0.00s) --- PASS: Test_expandWebACLRulesJSON/valid_and_empty_object (0.00s) --- PASS: Test_expandWebACLRulesJSON/valid_object (0.00s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/wafv2 5.969s ```
This functionality has been released in v5.61.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Add
rule_json
attribute to allow for raw JSON input for rules.Relations
Relates #35143
References
Output from Acceptance Testing