mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-07-29 06:09:50 +00:00
Amazon linux AMI
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user