This script builds an AWS VPC meant for use by an EKS cluster (to be built by a downstream repo/module).
This module is currently consumed by the api-cloud-infrastructure repo.
To regenerate this section, delete everything under the horizontal divider below and run
terraform-docs markdown ./ >> README.md
in the repo root.
Name | Version |
---|---|
terraform | ~> 1.0 |
aws | >= 3.54.0, < 4.0.0 |
Name | Version |
---|---|
random | 3.1.0 |
Name | Source | Version |
---|---|---|
aws-vpc | ./aws-vpc | n/a |
Name | Type |
---|---|
random_id.vpc_random_suffix | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
azs | az's (Availability Zones): Where, geographically to allocate the subnets, referenced using AWS's AZ codes - ie. ap-southeast-1a = Singapore AZ 'A' | list(string) |
n/a | yes |
cidr | The CIDR allocation for the VPC. Largest is /16, smallest is /28. We use /16 to supply 8 x /19 subnets (6 active, 2 reserved for future expansion) | string |
n/a | yes |
enable_flow_log | Enable VPC flow logs | bool |
n/a | yes |
flow_log_cloudwatch_log_group_retention_in_days | The VPC flow log retention period in days | number |
n/a | yes |
name | Name allocated to the VPC. Used as the VPC name and as a prefix to other items, for example subnets | string |
n/a | yes |
private_subnets | A list of strings specifying the private subnet cidr Ranges. For example - ['10.250.128.0/19', '10.250.160.0/19', '10.250.192.0/19'] | list(string) |
n/a | yes |
public_subnets | A list of strings specifying the public subnet cidr Ranges. For example - ['10.250.0.0/19', '10.250.32.0/19', '10.250.64.0/19'] | list(string) |
n/a | yes |
Name | Description |
---|---|
private_route_table_ids | List of IDs of private route tables. |
private_subnets | List of private subnet IDs returned from terraform-aws-vpc module (aws_subnet.private.*.id) |
public_route_table_ids | List of IDs of public route tables. |
public_subnets | List of public subnet IDs, returned from terraform-aws-vpc module (aws_subnet.public.*.id) |
vpc_id | AWS identifier for the VPC provisioned by this module |