New structure

This commit is contained in:
s0dy
2018-11-01 12:13:58 +01:00
parent b563b39c6c
commit 2f9fcb3d91
4 changed files with 38 additions and 15 deletions

33
ops/terraform/security.tf Normal file
View 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
}
}