Configuration in this directory creates set of VPC resources which may be sufficient for staging or production environment (look into simple-vpc for more simplified setup).
There are public, private, database, ElastiCache, intra (private w/o Internet access) subnets, and NAT Gateways created in each availability zone.
To run this example you need to execute:
$ terraform init
$ terraform plan
$ terraform apply
Note that this example may create resources which can cost money (AWS Elastic IP, for example). Run terraform destroy
when you don't need these resources.
Name | Version |
---|---|
terraform | >= 0.12.31 |
aws | >= 3.28 |
Name | Version |
---|---|
aws | >= 3.28 |
Name | Source | Version |
---|---|---|
vpc | ../../ | |
vpc_endpoints | ../../modules/vpc-endpoints | |
vpc_endpoints_nocreate | ../../modules/vpc-endpoints |
Name | Type |
---|---|
aws_iam_policy_document.dynamodb_endpoint_policy | data source |
aws_iam_policy_document.generic_endpoint_policy | data source |
aws_security_group.default | data source |
aws_vpc_endpoint_service.dynamodb | data source |
No inputs.
Name | Description |
---|---|
cgw_ids | List of IDs of Customer Gateway |
database_subnets | List of IDs of database subnets |
elasticache_subnets | List of IDs of elasticache subnets |
intra_subnets | List of IDs of intra subnets |
nat_public_ips | List of public Elastic IPs created for AWS NAT Gateway |
private_subnets | List of IDs of private subnets |
public_subnets | List of IDs of public subnets |
redshift_subnets | List of IDs of redshift subnets |
this_customer_gateway | Map of Customer Gateway attributes |
vpc_endpoint_lambda_dns_entry | The DNS entries for the VPC Endpoint for Lambda. |
vpc_endpoint_lambda_id | The ID of VPC endpoint for Lambda |
vpc_endpoint_lambda_network_interface_ids | One or more network interfaces for the VPC Endpoint for Lambda. |
vpc_endpoint_ssm_dns_entry | The DNS entries for the VPC Endpoint for SSM. |
vpc_endpoint_ssm_id | The ID of VPC endpoint for SSM |
vpc_endpoint_ssm_network_interface_ids | One or more network interfaces for the VPC Endpoint for SSM. |
vpc_id | The ID of the VPC |