Update-2024-1204
This commit is contained in:
23
tf/security_group.tf
Normal file
23
tf/security_group.tf
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user