-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Feature request: support for WAF managed rulesets from marketplace #3172
Comments
Would like to see this enhancement for the new Hint from lesson learned having scripted this: the resource "aws_waf_web_acl" "foo" {
name = "foo"
metric_name = "foo"
default_action {
type = "BLOCK"
}
rules {
type = "GROUP"
priority = 1
rule_id = "my-uuid-for-marketplace-ruleset"
OverrideAction = {
type = "None"
}
}
}
resource "aws_wafregional_web_acl" "foo" {
name = "foo"
metric_name = "foo"
default_action {
type = "BLOCK"
}
rules {
type = "GROUP"
priority = 1
rule_id = "my-uuid-for-marketplace-ruleset"
OverrideAction = {
type = "None"
}
}
} |
There's nothing specific to AWS Marketplace rule groups in terms of the AWS CLI syntax. Now that there's a Terraform resource to create a rule group, adding support for rule groups in WebACLs (ref Issue #4052) will fix this issue too. Would love to see a data source to lookup Rule UUIDs based on a given |
# Implementation is similar for aws_wafregional_web_acl resource
resource "aws_waf_web_acl" "example" {
# ... other configuration ...
rules {
# ... other configuration ...
override_action {
type = "NONE"
}
type = "GROUP"
rule_id = "${aws_waf_rule_group.example.id}"
}
} If you are interested in some form of data source for AWS Marketplace rules, I would add your 👍 to #2654 and follow along there. |
This has been released in version 1.27.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Anyone have a working example of the above code, I am getting an error.I am on 1.32 provider version. Does anyone have a working example of using adding managed rules, using the above resource config I am getting an error. resource "aws_wafregional_web_acl" "foo" { } 1 error(s) occurred:
|
having data objects to query WAF ACL id's created in other terraform projects would be of great help data "aws_waf_web_acl" |
Hey. AWS released their own managed rules - https://aws.amazon.com/blogs/aws/announcing-aws-managed-rules-for-aws-waf/ Any plan to include them? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
AWS now offers managed WAF rulesets from the marketplace.
Terraform Version
Terraform v0.11.1
Affected Resource(s)
aws_waf_web_acl
Terraform Configuration Files
Debug Output
n/a
Panic Output
n/a
Expected Behavior
Terraform adds rule to web acl for marketplace ruleset.
Actual Behavior
Terraform does not support this.
Steps to Reproduce
terraform plan
Important Factoids
n/a
References
The text was updated successfully, but these errors were encountered: