Terraform Code 추가
This commit is contained in:
25
tf/acl.tf
Normal file
25
tf/acl.tf
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user