From 6a88ac1065a5de64955e57328f7fc72fac89f015 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Thu, 28 Mar 2024 18:52:31 +0000 Subject: [PATCH] add allowed_ingress_cidr --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index a912134..dfb8ab8 100644 --- a/main.tf +++ b/main.tf @@ -12,7 +12,7 @@ resource "aws_vpc" "sgtm_vpc" { resource "aws_subnet" "sptm_public_subnet" { vpc_id = aws_vpc.sgtm_vpc.id - cidr_block = "10.123.1.0/24" + cidr_block = var.public_cidr map_public_ip_on_launch = true availability_zone = "us-east-1a" @@ -57,7 +57,7 @@ resource "aws_security_group" "sgtm_sg" { from_port = 0 to_port = 0 protocol = "-1" - cidr_blocks = ["172.59.221.135/32"] + cidr_blocks = [var.allowed_ingress_cidr] } egress {