mirror of
https://github.com/idanoo/fediservices.nz-infra
synced 2025-07-02 06:12:15 +00:00
Formatting
This commit is contained in:
parent
2d32a3c4bb
commit
6d36a3aa71
4 changed files with 37 additions and 37 deletions
44
sg.tf
44
sg.tf
|
@ -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"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue