Terraform a 3-AZ VPC in AWS using the terraform-aws-vpc module.
These types of resources are created by default:
-
- Gateway: S3, DynamoDB
Terraform 1.1 to 1.5.5.
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.
Name | Version |
---|---|
terraform | >= 1.1, < 1.5.6 |
aws | >= 5.40 |
vpc | >= 5.5.3 |
security-group | >= 5.1.2 |
Name | Version |
---|---|
aws | >= 5.40 |
Name | Version |
---|---|
vpc | >= 5.5.3 |
security-group | >= 5.1.2 |
Name | Description |
---|---|
domain_name | Specifies DNS name for DHCP options set and Route 53 private hosted zone |
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 |
Code is maintained by Nick Adams with modules from these awesome contributors. Linting best practices from Kerim Satirli.
Apache 2 Licensed. See LICENSE for full details.