resource/aws_wafv2_web_acl: add monetize action and monetization_config - #48419
resource/aws_wafv2_web_acl: add monetize action and monetization_config#48419arditti wants to merge 1 commit into
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
|
Blocked on |
|
✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible. |
|
Unblocked: |
|
Re: the dependency-changes automation warning — understood, and converting back to draft. This feature requires Plan: once |
c4ada0f to
92409ce
Compare
|
Thanks for merging #48423. I've rebased onto While running the acceptance tests I found that Both acceptance tests pass against CLOUDFRONT scope: Marking ready for review. |
Full test runVerified the complete change set locally before review. Summary: Acceptance tests (CLOUDFRONT scope, Each test exercises the full lifecycle: create → read → Static checks (against
The diff is code-only (no |
92409ce to
1d5effa
Compare
|
Hi @ewbankkit @arditti ! Thanks for working on this. 🎉 Do you have any idea when this feature might be released? Thanks! |
…tive request monetization
AWS WAF now supports charging for a web request natively. Add the per-rule
'monetize' action (alongside allow/block/count/captcha/challenge) and a
WebACL/RuleGroup-level 'monetization_config' block.
- aws_wafv2_web_acl + aws_wafv2_rule_group: new 'monetize' rule action with
'price_multiplier' (1-100).
- aws_wafv2_web_acl + aws_wafv2_rule_group: new 'monetization_config' block
(crypto_config.payment_network[].{chain, wallet_address, prices[].{amount,
currency}}, currency_mode). Required by the API when a rule uses monetize.
- Field validation mirrors the WAF API Reference (enums for chain/currency/
currency_mode; length + pattern for amount, wallet_address, price_multiplier).
- Acceptance tests (CLOUDFRONT scope), website docs, and changelog.
Closes hashicorp#48418
1d5effa to
143b415
Compare
|
Hi @robertgv — release timing depends on when this gets reviewed and merged; after that it ships with the next weekly provider release. To ease the review, I've just rebased the branch onto the latest |
|
Thank you @arditti! 👏 @ewbankkit @justinretzolk I’d be very interested in trying out this new feature via Terraform. Is there anything I can help with to prioritize the merge? Thank you! |
Description
AWS WAF now supports charging for a web request natively — a new per-rule
monetizeaction (alongsideallow/block/count/captcha/challenge) plus a WebACL/RuleGroup-levelmonetization_config. This PR adds Terraform support toaws_wafv2_web_aclandaws_wafv2_rule_group.Announced GA 2026-06-15: https://aws.amazon.com/blogs/aws/aws-waf-adds-ai-traffic-monetization-capability-to-help-content-owners-charge-ai-bots-for-content-access/
Changes
aws_wafv2_web_acl/aws_wafv2_rule_group: newmonetizerule action withprice_multiplier(integer 1–100).aws_wafv2_web_acl/aws_wafv2_rule_group: newmonetization_configblock —crypto_config.payment_network[].{chain, wallet_address, prices[].{amount, currency}}andcurrency_mode. The API requires this when any rule uses themonetizeaction.chain/currency/currency_mode; length + pattern foramount,wallet_address,price_multiplier).Depends on
aws-sdk-go-v2/service/wafv2v1.73.0 (merged via #48423).Relations
Closes #48418
References
Output from Acceptance Testing