binbashar / le-tf-infra-aws

Terraform code for Leverage Reference Architecture for AWS, designed under optimal configs for the most popular modern web and mobile applications needs.
https://www.binbash.co/leverage
Apache License 2.0
26 stars 8 forks source link

Feature | Add WAFv2 AWSManagedRulesATPRuleSet for AWS WAFv2 via Terraform #430

Open marianod92 opened 2 years ago

marianod92 commented 2 years ago

Enable AWSManagedRulesATPRuleSet for AWS WAFv2 via Terraform

Add related rules and example Terraform code to provision/enable AWSManagedRulesATPRuleSet for AWS WAFv2. This functionality allows us to protect from brute force attacks on a specified login, lost credentials and even, allows us to verify session and token issues.

Currently not supported by Terraform. This is mentioned in the following Issues:

Layer related: security-firewall

Example of expected code:

statement {
  managed_rule_group_statement {
    name               = "AWSManagedRulesATPRuleSet"
    vendor_name = "AWS"
  }
}
marianod92 commented 1 year ago

Update from these two related issues:

(https://github.com/hashicorp/terraform-provider-aws/issues/23287#issuecomment-1372896160) This functionality has been released in v4.49.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.