Formatting and comments

This commit is contained in:
shockrah 2022-12-27 21:02:56 -08:00
parent 52a9a94b32
commit 00edcc64af
3 changed files with 15 additions and 13 deletions

View File

@ -1,3 +1,6 @@
#############################
# project-athens.xyz DNS ZONE
#############################
# This entry is just for the sample service that is just plain nginx # This entry is just for the sample service that is just plain nginx
# No TLS will be placed on this just yet as we need to make sure this # No TLS will be placed on this just yet as we need to make sure this

View File

@ -7,14 +7,14 @@ resource "aws_security_group" "ecs_web_ingress" {
ingress { ingress {
cidr_blocks = ["0.0.0.0/0"] cidr_blocks = ["0.0.0.0/0"]
from_port = 443 from_port = 443
to_port = 443 to_port = 443
protocol = "tcp" protocol = "tcp"
} }
ingress { ingress {
cidr_blocks = ["0.0.0.0/0"] cidr_blocks = ["0.0.0.0/0"]
from_port = 80 from_port = 80
to_port = 80 to_port = 80
protocol = "tcp" protocol = "tcp"
} }
} }
@ -23,20 +23,20 @@ resource "aws_security_group" "base_ecs" {
egress { egress {
cidr_blocks = ["0.0.0.0/0"] cidr_blocks = ["0.0.0.0/0"]
from_port = 80 from_port = 80
to_port = 80 to_port = 80
protocol = "tcp" protocol = "tcp"
} }
egress { egress {
cidr_blocks = ["0.0.0.0/0"] cidr_blocks = ["0.0.0.0/0"]
from_port = 443 from_port = 443
to_port = 443 to_port = 443
protocol = "tcp" protocol = "tcp"
} }
egress { egress {
cidr_blocks = ["0.0.0.0/0"] cidr_blocks = ["0.0.0.0/0"]
from_port = 2049 from_port = 2049
to_port = 2049 to_port = 2049
protocol = "tcp" protocol = "tcp"
} }
} }

View File

@ -1,6 +1,5 @@
# This script represents the subnet structure for Crete(primary subnet) # This script represents the subnet structure for Crete(primary subnet)
# Crete will serve as the private subnet with internal services
resource "aws_subnet" "crete_subnet" { resource "aws_subnet" "crete_subnet" {
vpc_id = aws_vpc.athens_vpc.id vpc_id = aws_vpc.athens_vpc.id
# 10.0.1.0/24 # 10.0.1.0/24
@ -8,7 +7,7 @@ resource "aws_subnet" "crete_subnet" {
availability_zone = var.athens_availability_zone availability_zone = var.athens_availability_zone
tags = { tags = {
Name = "Crete Subnet - Internal" Name = "Crete Subnet"
Description = "Main subnet for EC2 and Alpha-LB" Description = "Main subnet for EC2 and Alpha-LB"
} }
} }
@ -18,7 +17,7 @@ resource "aws_subnet" "delphi" {
cidr_block = "10.0.2.0/24" cidr_block = "10.0.2.0/24"
availability_zone = "us-west-1c" availability_zone = "us-west-1c"
tags = { tags = {
Name = "Delphi Subnet - Internal" Name = "Delphi Subnet"
Description = "Secondary subnet for the Alpha-LB mostly" Description = "Secondary subnet for the Alpha-LB mostly"
} }
} }