vpc

dwp/vpc/aws

Terraform Module HCL AWS

A Terraform module to create an AWS VPC with consistent features

Install
module "vpc" {
source = "dwp/vpc/aws"
version = "3.0.24"
}
plain text: /constructs/tfmod-dwp-vpc-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-vpc A Terraform module to create an AWS VPC with consistent features Usage Migration: v2.x -> v3.x *Warning: Migrating from v2.x to v3.x will cause all VPC Endpoints to be destroyed and recreated, which may cause downtime. Breaking changes: VPC Endpoint services are now passed as a list, see examples section Prefix list outputs are now grouped under a single output value and therefore accessed differently: prefix_list_ids. (e.g.: module.vpc.prefix_list_ids.dynamodb) Variable interface_vpce_source_security_group_count no longer needed New features: The module now exposes the no_proxy_list output, which is a list of all the VPC endpoint DNS names. This is useful in environments which use a proxy for internet egress to let applications know not to use the proxy when connecting t

Inputs (14)
NameTypeDescriptionDefault
vpc_namestringThe name of the VPC. required
vpc_cidr_blockstringThe CIDR block of the VPC. required
regionstringThe region in which to deploy the VPC. required
vpc_flow_log_retention_daysstringThe number of days to retain VPC flow logs in CloudWatch for. Defaults to 180.180
aws_vpce_servicesset(string)Set of AWS Service names to create VPC Endpoints for. By default only the 'logs'[ "logs" ]
gateway_vpce_route_table_idslist(string)A list of one or more route table IDs for Gateway VPC Endpoint rules to be added[]
common_tagsmap(string)Common Tags{}
interface_vpce_subnet_idslist(string)A list of subnet IDs that all Interface VPC endpoints will be attached to[]
vpc_enable_dns_hostnamesboolA boolean flag to enable/disable DNS hostnames in the VPC. Defaults to true.true
vpc_flow_log_traffic_typestringThe type of traffic ('ACCEPT', 'REJECT', or 'ALL') to log. Defaults to 'ALL'."ALL"
custom_vpce_servicesset(object({ key Set of objects mapping service names to ports for custom VPC Endpoint services. []
vpc_instance_tenancystringTenancy of instances spun up within the VPC (`default`, `dedicated`).)"default"
interface_vpce_source_security_group_idslist(string)A list of security group IDs that will be allowed to reach the Interface VPCs.[]
hcs_tagsmap(string)Common Tags{}
Outputs (9)
vpc — VPC Details
ecr_dkr_domain_name — ECR dkr domain name
prefix_list_ids — Prefix List ID's
no_proxy_list — No_proxy List
ssm_iam_role_name — SSM IAM Role Name
ssm_instance_profile_name — SSM IAM instance profile Name
interface_vpce_sg_id — VPCE SG endpoint ID
custom_vpce_sg_id — Custom VPCE SG endpoint ID
custom_vpce_dns_names — Custom VPCE DNS Names
Resources (11)
aws_cloudwatch_log_groupaws_default_security_groupaws_flow_logaws_iam_instance_profileaws_iam_roleaws_iam_role_policyaws_iam_role_policy_attachmentaws_security_groupaws_security_group_ruleaws_vpcaws_vpc_endpoint
Details
FrameworkTerraform Module
LanguageHCL
Version3.0.24
Cloud AWS
★ Stars1
Forks3
Total downloads259.7k
Inputs14
Outputs9
Resources11
LicenseMIT
Namespacedwp
Updated