Skip to content

Commit

Permalink
chore: final try
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Ciaffardini authored and Gianmarco Ciaffardini committed Oct 1, 2022
1 parent c29126b commit b79009b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .aws/production/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"dnsSearchDomains": null,
"logConfiguration": null,
"entryPoint": null,
"environment": [
"environment": [],
"environmentFiles": [
{
"name": "PORT",
"value": "4000"
"value": "arn:aws:s3:::elephant-production-bucket/.production.env",
"type": "s3"
}
],
"portMappings": [
Expand Down
25 changes: 25 additions & 0 deletions infrastructure/modules/vpc/ main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,28 @@ resource "aws_route_table_association" "public_subnet_2-route-table-association"
route_table_id = aws_route_table.public_route_table.id
}


# PRIVATE

resource "aws_route_table" "private_route_table" {
vpc_id = aws_vpc.main.id
tags = {
"Name" = "${local.name}-pvt-route-table"
}
}

resource "aws_route" "private_route" {
route_table_id = "${aws_route_table.private_route_table.id}"
destination_cidr_block = "0.0.0.0/0"
gateway_id = aws_internet_gateway.internet_gateway.id
}

resource "aws_route_table_association" "private_subnet_1-route-table-association" {
subnet_id = aws_subnet.private_subnet_1.id
route_table_id = aws_route_table.private_route_table.id
}

resource "aws_route_table_association" "private_subnet_2-route-table-association" {
subnet_id = aws_subnet.private_subnet_2.id
route_table_id = aws_route_table.private_route_table.id
}

0 comments on commit b79009b

Please sign in to comment.