mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-07-29 06:09:50 +00:00
New structure
This commit is contained in:
33
ops/terraform/security.tf
Normal file
33
ops/terraform/security.tf
Normal file
@ -0,0 +1,33 @@
|
||||
###########################
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_security_group" "allow_http" {
|
||||
name = "allow http"
|
||||
|
||||
ingress {
|
||||
from_port = 80
|
||||
to_port = 80
|
||||
protocol = "tcp"
|
||||
cidr_blocks = ["0.0.0.0/0"]
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user