Update-2024-1204

This commit is contained in:
ByeonJungHun
2024-12-04 17:30:45 +09:00
parent f41fa8323e
commit ce3b9a1cbf
6 changed files with 177 additions and 73 deletions

23
tf/security_group.tf Normal file
View File

@@ -0,0 +1,23 @@
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"
}
}