Skip to content

Commit 1e6f450

Browse files
committed
fix: missing support 'region' argument on 'aws_wafv2_rule_group'
1 parent 77324dc commit 1e6f450

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12347,6 +12347,7 @@ resource "aws_wafv2_web_acl" "this" {
1234712347
resource "aws_wafv2_web_acl_association" "this" {
1234812348
count = var.enabled_web_acl_association ? length(var.resource_arn) : 0
1234912349

12350+
region = var.region
1235012351
resource_arn = var.resource_arn[count.index]
1235112352
web_acl_arn = aws_wafv2_web_acl.this.arn
1235212353

@@ -12356,6 +12357,7 @@ resource "aws_wafv2_web_acl_association" "this" {
1235612357
resource "aws_wafv2_web_acl_logging_configuration" "this" {
1235712358
count = var.enabled_logging_configuration ? 1 : 0
1235812359

12360+
region = var.region
1235912361
log_destination_configs = [var.log_destination_configs]
1236012362
resource_arn = aws_wafv2_web_acl.this.arn
1236112363

modules/ip-set/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ resource "aws_wafv2_ip_set" "this" {
22
name = var.name
33
description = var.description
44
scope = var.scope
5+
region = var.region
56
ip_address_version = var.ip_address_version
67
addresses = var.addresses
78
tags = var.tags

modules/ip-set/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ variable "scope" {
1414
type = string
1515
}
1616

17+
variable "region" {
18+
description = "(Optional) Region where this resource will be managed. Defaults to the Region set in the provider configuration."
19+
type = string
20+
default = null
21+
}
22+
1723
variable "ip_address_version" {
1824
description = "(Required) Specify IPV4 or IPV6. Valid values are IPV4 or IPV6."
1925
type = string

0 commit comments

Comments
 (0)