23 lines
438 B
HCL
23 lines
438 B
HCL
resource "aws_security_group" "aws_default_scgroup" {
|
|
name = "aws_default_scgroup"
|
|
description = "default EC2 security group"
|
|
vpc_id = aws_vpc.aws-default-vpc.id
|
|
|
|
ingress {
|
|
protocol = "tcp"
|
|
from_port = 22
|
|
to_port = 22
|
|
cidr_blocks = [ "39.115.183.219/32" ]
|
|
}
|
|
|
|
egress {
|
|
protocol = "-1"
|
|
from_port = 0
|
|
to_port = 0
|
|
cidr_blocks = [ "0.0.0.0/0" ]
|
|
}
|
|
|
|
tags = {
|
|
Name = "aws_default_scgroup"
|
|
}
|
|
} |