Formatting

This commit is contained in:
Daniel Mason 2023-04-22 13:19:00 +12:00
parent 2d32a3c4bb
commit 6d36a3aa71
Signed by: idanoo
GPG key ID: 387387CDBC02F132
4 changed files with 37 additions and 37 deletions

44
sg.tf
View file

@ -3,38 +3,38 @@ resource "aws_security_group" "sg" {
name = "status.fediservices.nz"
description = "status.fediservices.nz"
vpc_id = aws_vpc.vpc.id
vpc_id = aws_vpc.vpc.id
}
# Allow out
resource "aws_security_group_rule" "allow_egress" {
security_group_id = aws_security_group.sg.id
type = "egress"
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
security_group_id = aws_security_group.sg.id
type = "egress"
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
# Allow HTTP traffic
resource "aws_security_group_rule" "http" {
security_group_id = aws_security_group.sg.id
type = "ingress"
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
security_group_id = aws_security_group.sg.id
type = "ingress"
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
# Allow HTTPS traffic
resource "aws_security_group_rule" "https" {
security_group_id = aws_security_group.sg.id
type = "ingress"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
security_group_id = aws_security_group.sg.id
type = "ingress"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}