File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ module "private_alb_config" {
236
236
237
237
private_alb_arn = module. private_alb_basic . private_alb_arn
238
238
waf_logs_bucket_name = var. waf_logs_bucket_name
239
+ vpc_cidr_block = module. network . vpc_cidr_block
239
240
}
240
241
241
242
module "public_nlb_config" {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ resource "aws_wafv2_ip_set" "internal_ips" {
2
2
name = " internal_IPs"
3
3
scope = " REGIONAL"
4
4
ip_address_version = " IPV4"
5
- addresses = [" 10.0.0.0/16 " ]
5
+ addresses = [var . vpc_cidr_block ]
6
6
}
7
7
resource "aws_wafv2_web_acl" "basic_protection" {
8
8
name = " private-alb-waf"
Original file line number Diff line number Diff line change @@ -9,3 +9,9 @@ variable "waf_logs_bucket_name" {
9
9
type = string
10
10
sensitive = false
11
11
}
12
+
13
+ variable "vpc_cidr_block" {
14
+ description = " CIDR block or network range of the VPC"
15
+ type = string
16
+ sensitive = false
17
+ }
You can’t perform that action at this time.
0 commit comments