vpc

104corp/vpc/aws

Terraform Module HCL AWS

Terraform module which creates VPC resources on AWS

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

AWS VPC Terraform module !Build Status !LicenseBadge Terraform module which creates VPC resources on AWS. These types of resources are supported: VPC Subnet Route Route table Internet Gateway NAT Gateway VPN Gateway VPC Endpoint (S3 and DynamoDB) DHCP Options Set Default VPC Usage ``hcl module "vpc" { source = "104corp/vpc/aws" name = "my-vpc" cidr = "10.0.0.0/16" azs = ["ap-northeast-1a", "ap-northeast-1c","ap-northeast-1d"] private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] nat_subnets = ["10.0.10.0/24", "10.0.11.0/24", "10.0.12.0/24"] enable_vpn_gateway = true tags = { Terraform = "true" Environment = "dev" } } ` External NAT Gateway IPs By default this module will provision new Elastic IPs for the VPC's N

Inputs (50)
NameTypeDescriptionDefault
manage_default_network_aclstringShould be true to adopt and manage Default Network ACLfalse
public_dedicated_network_aclstringWhether to use dedicated network ACL (not default) and custom rules for public sfalse
nat_subnet_suffixstringSuffix to append to NAT subnets name"nat"
map_public_ip_on_launchstringShould be false if you do not want to auto-assign public IP on launchtrue
propagate_public_route_tables_vgwstringShould be true if you want route table propagationfalse
private_subnet_tagsmapAdditional tags for the private subnets{}
vpn_gateway_tagsmapAdditional tags for the VPN gateway{}
default_vpc_enable_dns_supportstringShould be true to enable DNS support in the Default VPCtrue
instance_tenancystringA tenancy option for instances launched into the VPC"default"
nat_subnetslistA list of nat subnets[]
enable_dns_hostnamesstringShould be true to enable DNS hostnames in the VPCfalse
nat_dedicated_network_aclstringWhether to use dedicated network ACL (not default) and custom rules for nat subnfalse
cidrstringThe CIDR block for the VPC. Default value is a valid CIDR, but not acceptable by"0.0.0.0/0"
vpc_tagsmapAdditional tags for the VPC{}
dhcp_options_tagsmapAdditional tags for the DHCP option set{}
ec2_endpoint_security_group_idslistThe ID of one or more security groups to associate with the network interface fo[]
igw_tagsmapAdditional tags for the internet gateway{}
nat_gateway_tagsmapAdditional tags for the NAT gateways{}
dhcp_options_domain_namestringSpecifies DNS name for DHCP options set""
assign_generated_ipv6_cidr_blockstringRequests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPCfalse
… and 10 more inputs
Outputs (37)
default_security_group_id — The ID of the security group created by default on VPC creation
vpc_endpoint_s3_pl_id — The prefix list for the S3 VPC endpoint.
default_vpc_main_route_table_id — The ID of the main route table associated with this VPC
vpc_endpoint_dynamodb_id — The ID of VPC endpoint for DynamoDB
default_vpc_enable_dns_support — Whether or not the VPC has DNS support
vpc_id — The ID of the VPC
default_route_table_id — The ID of the default route table
vpc_enable_dns_support — Whether or not the VPC has DNS support
private_route_table_ids — List of IDs of private route tables
nat_route_table_ids — List of IDs of nat route tables
natgw_ids — List of NAT Gateway IDs
vpc_main_route_table_id — The ID of the main route table associated with this VPC
nat_ids — List of allocation ID of Elastic IPs created for AWS NAT Gateway
private_subnets — List of IDs of private subnets
default_network_acl_id — The ID of the default network ACL
public_subnets_cidr_blocks — List of cidr_blocks of public subnets
nat_subnets — List of IDs of nat subnets
vgw_id — The ID of the VPN Gateway
vpc_cidr_block — The CIDR block of the VPC
vpc_instance_tenancy — Tenancy of instances spin up within VPC
public_subnets — List of IDs of public subnets
default_vpc_default_network_acl_id — The ID of the default network ACL
default_vpc_default_route_table_id — The ID of the default route table
default_vpc_cidr_block — The CIDR block of the VPC
default_vpc_default_security_group_id — The ID of the security group created by default on VPC creation
vpc_enable_dns_hostnames — Whether or not the VPC has DNS hostname support
private_subnets_cidr_blocks — List of cidr_blocks of private subnets
public_route_table_ids — List of IDs of public route tables
vpc_endpoint_s3_id — The ID of VPC endpoint for S3
vpc_endpoint_dynamodb_pl_id — The prefix list for the DynamoDB VPC endpoint.
… and 7 more outputs
Resources (22)
aws_default_network_aclaws_default_vpcaws_eipaws_internet_gatewayaws_nat_gatewayaws_network_aclaws_network_acl_ruleaws_routeaws_route_tableaws_route_table_associationaws_security_groupaws_security_group_ruleaws_subnetaws_vpcaws_vpc_dhcp_optionsaws_vpc_dhcp_options_associationaws_vpc_endpointaws_vpc_endpoint_route_table_associationaws_vpc_ipv4_cidr_block_associationaws_vpn_gatewayaws_vpn_gateway_attachmentaws_vpn_gateway_route_propagation
Topics & Tags
terraformvpcaws
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.0
Cloud AWS
★ Stars2
Forks2
Total downloads6.8k
Inputs50
Outputs37
Resources22
LicenseApache-2.0
Namespace104corp
Updated