add allowed_ingress_cidr

This commit is contained in:
Ryan Malloy 2024-03-28 18:52:31 +00:00
parent be72306645
commit 6a88ac1065
1 changed files with 2 additions and 2 deletions

View File

@ -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 {