Amazon linux AMI

This commit is contained in:
s0dy
2018-11-01 13:31:30 +01:00
parent c702e756dd
commit 31a38b9043
4 changed files with 387 additions and 4 deletions

View File

@ -1,5 +1,5 @@
###########################
# SECURITY GROUP
# ALLOW SSH
###########################
resource "aws_security_group" "allow_ssh" {
@ -17,16 +17,27 @@ resource "aws_security_group" "allow_ssh" {
}
}
###########################
# ALLOW HTTP
###########################
resource "aws_security_group" "allow_http" {
name = "allow http"
ingress {
egress {
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
egress {
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
lifecycle {
create_before_destroy = true
}