add allowed_ingress_cidr
This commit is contained in:
parent
be72306645
commit
6a88ac1065
4
main.tf
4
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 {
|
||||
|
|
Loading…
Reference in New Issue