mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 11:22:12 +00:00
20 lines
299 B
HCL
20 lines
299 B
HCL
###########################
|
|
#SECURITY GROUP
|
|
###########################
|
|
|
|
resource "aws_security_group" "allow_ssh" {
|
|
name = "allow ssh"
|
|
|
|
ingress {
|
|
from_port = 22
|
|
to_port = 22
|
|
protocol = "tcp"
|
|
cidr_blocks = ["0.0.0.0/0"]
|
|
}
|
|
|
|
lifecycle {
|
|
create_before_destroy = true
|
|
}
|
|
}
|
|
|