Files
terraform-aws-vpc-factory/examples/minimum
2024-05-01 14:50:47 +02:00
..
2024-05-01 14:50:47 +02:00
2024-04-27 18:25:39 +02:00

Minimum VPC Factory

Configuration in this directory creates a VPC with 2 groups of subnets named public and private. 1 subnet per availability zone in the region is created on each group. Cidr block for each subnet in the group is calculated automaticaly based on the group cidr_block and the numbre of availability zone used.

The group named public is declared as public with its default route through Internet Gatewat.

The group named private has a default route to a NAT Gateway in public subnets group. That means a NAT Gateway will be created in each public subnets as target default route in route tables of private subnets.

network_acl_disabled is set to true becsause in this exemple we don't want to manage Network ACLs. That way, the VPC default Network ACL is configure with ingress and egress rules whitch are allowing all trafic.

Usage

To run this example you need to execute:

terraform init
terraform plan
terraform apply

Requirements

Name Version
terraform >=1.0
aws >=4.0

Providers

No providers.

Modules

Name Source Version
vpc ../.. n/a

Resources

No resources.

Inputs

No inputs.

Outputs

Name Description
module VPC module outputs