From 3a6547740fb0d5b2a0dbdb07a07901f1e688ea9f Mon Sep 17 00:00:00 2001 From: Hui Kang Date: Mon, 16 May 2022 16:49:46 -0400 Subject: [PATCH] change to var.vpc_cidr --- test/load/terraform/consul.tf | 8 ++++---- test/load/terraform/test-servers.tf | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/load/terraform/consul.tf b/test/load/terraform/consul.tf index 8a4fc97bd..bc30bf6f4 100644 --- a/test/load/terraform/consul.tf +++ b/test/load/terraform/consul.tf @@ -37,9 +37,9 @@ module "consul_servers" { vpc_id = module.vpc.vpc_id subnet_ids = module.vpc.public_subnets - allowed_ssh_cidr_blocks = ["10.0.0.0/16"] + allowed_ssh_cidr_blocks = [var.vpc_cidr] - allowed_inbound_cidr_blocks = ["10.0.0.0/16"] + allowed_inbound_cidr_blocks = [var.vpc_cidr] ssh_key_name = module.keys.key_name } @@ -57,9 +57,9 @@ module "consul_clients" { vpc_id = module.vpc.vpc_id subnet_ids = module.vpc.public_subnets - allowed_ssh_cidr_blocks = ["10.0.0.0/16"] + allowed_ssh_cidr_blocks = [var.vpc_cidr] - allowed_inbound_cidr_blocks = ["10.0.0.0/16"] + allowed_inbound_cidr_blocks = [var.vpc_cidr] ssh_key_name = module.keys.key_name } diff --git a/test/load/terraform/test-servers.tf b/test/load/terraform/test-servers.tf index 9265e9d53..ff40fcabc 100644 --- a/test/load/terraform/test-servers.tf +++ b/test/load/terraform/test-servers.tf @@ -31,19 +31,19 @@ resource "aws_security_group" "test-servers" { to_port = 8500 security_groups = [module.consul_clients.security_group_id] protocol = "6" - cidr_blocks = ["10.0.0.0/16"] + cidr_blocks = [var.vpc_cidr] } ingress { from_port = 22 to_port = 22 protocol = "6" - cidr_blocks = ["10.0.0.0/16"] + cidr_blocks = [var.vpc_cidr] } egress { from_port = 0 to_port = 0 protocol = "-1" - cidr_blocks = ["10.0.0.0/16"] + cidr_blocks = [var.vpc_cidr] } }