7c8593c3c1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
|
||
---|---|---|
.drone.yml | ||
.gitignore | ||
.pre-commit-config.yaml | ||
.python-version | ||
.releaserc.json | ||
README.md | ||
main.tf | ||
outputs.tf | ||
variables.tf |
README.md
aws_network terraform module
Terraform module to provision a vpc with public and private subnets for each AZ.
Provision a internet gateway for public subnets and a NAT gateway for private subnets.
Subnets are tagged with key "Tier" and value "public" or "private".
To launch instances use: aws_servers_module
Requirements
No requirements.
Providers
Name | Version |
---|---|
aws | n/a |
Modules
No modules.
Resources
Name | Type |
---|---|
aws_eip.nat | resource |
aws_internet_gateway.main | resource |
aws_nat_gateway.nat | resource |
aws_route_table.private_subnets | resource |
aws_route_table.public_subnets | resource |
aws_route_table_association.private_routes | resource |
aws_route_table_association.public_routes | resource |
aws_subnet.private_subnets | resource |
aws_subnet.public_subnets | resource |
aws_vpc.main | resource |
aws_availability_zones.available | data source |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
env | Environment of the deployment | string |
n/a | yes |
tags | General tags to apply to all the resources | map(string) |
{} |
no |
vpc_cidr | Cidr block of the VPC | string |
"10.0.0.0/16" |
no |
Outputs
Name | Description |
---|---|
private_subnets_cidrs | Cidr block of the created private subnets |
private_subnets_ids | Ids of the created private subnets |
public_subnets_cidrs | Cidr blocks of the created public subnets |
public_subnets_ids | Ids of the created public subnets |
vpc_cidr | Cidr blocks of the created VPC |
vpc_id | Id of the created VPC |