This module manages network resources in AWS.
Instantiate the module by calling it from Terraform like this:
module "aws-eks" {
source = "dodevops/network/aws"
version = "<version>"
(...)
}
The following requirements are needed by this module:
-
terraform (>=1.0.0)
-
aws (>=3.33.0)
The following providers are used by this module:
- aws (>=3.33.0)
No modules.
The following resources are used by this module:
- aws_internet_gateway.internet (resource)
- aws_route_table.private (resource)
- aws_route_table.public (resource)
- aws_route_table_association.private (resource)
- aws_route_table_association.subnet_route_table (resource)
- aws_security_group.allow (resource)
- aws_security_group_rule.private_allow (resource)
- aws_security_group_rule.private_allow_postgres (resource)
- aws_subnet.private_subnets (resource)
- aws_subnet.public_subnets (resource)
- aws_vpc.vpc (resource)
- aws_vpc_endpoint.gateway_endpoints (resource)
- aws_vpc_endpoint.interface_endpoints (resource)
The following input variables are required:
Description: CIDR block for the VPC
Type: string
Description: A map of private subnets, the key is used as a name suffix for the subnet. Each object has the following items:
- cidr_block: CIDR block used in subnet
- availablity_zone: availability zone to use
- tags: A map of tags to set
Type:
map(object({
cidr_block : string,
availability_zone : string,
tags : map(string),
}))
Description: Project this configuration is for
Type: string
Description: A list of public subnets, the key i used as a name suffi for the subnet. Each subnet has the following items:
- cidr_block: CIDR block used in subnet
- availablity_zone: availability zone to use
- tags: A map of tags to set
Type:
map(object({
cidr_block : string,
availability_zone : string,
tags : map(string),
}))
Description: Name of the region
Type: string
Description: Name of the stage
Type: string
Description: Suffix of the VPC name
Type: string
The following input variables are optional (have default values):
Description: Additional tags to set
Type: map(string)
Default: {}
The following outputs are exported:
Description: ARN of the managed VPC
Description: ID of the managed VPC
Description: CIDR blocks of the managed private subnets
Description: IDs of the managed private subnets
Description: CIDR blocks of the managed public subnets
Description: IDs of the managed public subnets
Description: The id of the managed security group
Description: ID of the VPC gateway endpoint
Use the terraform module tools to check and generate the documentation by running
docker run -v "$PWD":/terraform ghcr.io/dodevops/terraform-module-tools:latest