Skip to content

marquesmateus93/terraform-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Terraform VPC

About

The project creates an AWS VPC to provide communication between three subnets layers: one public and two privates.

- Public Subnets

Allows communication from the internet providing access to private subnets. Bastion hosts could do the communication.

- Private Subnets

It is divided into two types: application and database.

Application Subnets

The application machines don't have external access and should be access by SSH, just from public subnets. This access should be done just from Load Balancer in a specific port.

Database Subnets

The database subnet was thought to be associated with an RDS instance and be accessed just from private subnets in a specific port.

Structure

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_eip.marques_elastic_ip resource
aws_internet_gateway.marques_internet_gateway resource
aws_nat_gateway.marques_nat_gateway resource
aws_route_table.marques_private_route_table resource
aws_route_table.marques_public_route_table resource
aws_route_table_association.private_route_table resource
aws_route_table_association.public_route_table resource
aws_subnet.marques_data_resource_subnet resource
aws_subnet.marques_private_subnet resource
aws_subnet.marques_public_subnet resource
aws_vpc.marques_vpc resource

Inputs

Name Description Type Default Required
azs Default AZs range. Ohio. list(string)
[
"us-east-2a",
"us-east-2b",
"us-east-2c"
]
no
data_resource_cidr_block Data resources subnet IPs range. list(string)
[
"10.0.21.0/24",
"10.0.22.0/24",
"10.0.33.0/24"
]
no
prefix_name Resources prefix name. string n/a yes
private_cidr_block Private subnet IPs range. list(string)
[
"10.0.11.0/24",
"10.0.12.0/24",
"10.0.13.0/24"
]
no
public_cidr_block Public subnet IPs range. list(string)
[
"10.0.1.0/24",
"10.0.2.0/24",
"10.0.3.0/24"
]
no
tags Tracking tags. map(string) n/a yes
vpc_cidr_block VPC IPs range. string "10.0.0.0/16" no

Outputs

No outputs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages