Skip to content

nickkadams/terraform-aws-vpc

Repository files navigation

Terraform AWS VPC

Terraform a 3-AZ VPC in AWS using the terraform-aws-vpc module.

These types of resources are created by default:

Terraform versions

Terraform 1.1 to 1.5.5.

Usage

To run this example you need to execute:

pre-commit install
cp terraform.tfvars.sample terraform.tfvars
terraform init
terraform plan
terraform apply

Note that this example may create resources which can cost money (AWS Elastic IP, AWS NAT Gateway, for example). Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 1.1, < 1.5.6
aws >= 5.40
vpc >= 5.5.3
security-group >= 5.1.2

Providers

Name Version
aws >= 5.40

Modules

Name Version
vpc >= 5.5.3
security-group >= 5.1.2

Inputs

Name Description
domain_name Specifies DNS name for DHCP options set and Route 53 private hosted zone

Outputs

Name Description
account_id The AWS account ID
caller_arn The caller ARN
vpc_id The ID of the VPC
vpc_name The name of the VPC
vpc_cidr_block The CIDR block of the VPC
private_subnets List of IDs of private subnets
public_subnets List of IDs of public subnets
rds_subnet_group The RDS DB subnet group
ec_subnet_group The ElastiCache subnet group
mgmt_security_group The management security group
jumphost_eips List of elastic IPs
domain_name The Route 53 domain name

Authors

Code is maintained by Nick Adams with modules from these awesome contributors. Linting best practices from Kerim Satirli.

License

Apache 2 Licensed. See LICENSE for full details.