Terraform Code 추가

This commit is contained in:
ByeonJungHun
2024-12-04 14:11:05 +09:00
parent 2edcf77bda
commit 2fc5920235
15 changed files with 1396 additions and 2 deletions

25
tf/acl.tf Normal file
View File

@@ -0,0 +1,25 @@
resource "aws_network_acl" "aws_default_acl" {
vpc_id = aws_vpc.aws-default-vpc.id
ingress {
protocol = "tcp"
rule_no = 1
action = "allow"
cidr_block = "39.115.183.219/32"
from_port = 22
to_port = 22
}
ingress {
protocol = "tcp"
rule_no = 2
action = "deny"
cidr_block = "0.0.0.0/0"
from_port = 22
to_port = 22
}
tags = {
Name = "aws_default_acl"
}
}