named-subnets

cloudposse/named-subnets/aws

Terraform Module HCL AWS

Terraform module for named subnets provisioning.

Install
module "named-subnets" {
source = "cloudposse/named-subnets/aws"
version = "0.12.0"
}
plain text: /constructs/tfmod-cloudposse-named-subnets-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-named-subnets ![Latest Release](https://github.com/cloudposse/terraform-aws-named-subnets/releases/latest) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) Terraform module for named subnets provisioning. --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source Modules][terraform_modules] It's 100% Open Source and licensed under the APACHE2. We literally have [hundreds of terraform modules][terraform_modules] that are Open Source and well-maintained. Check them out! Security & Compliance Security scanning is

Inputs (35)
NameTypeDescriptionDefault
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' required
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["na required
subnet_nameslist(string)List of subnet names (e.g. `['apples', 'oranges', 'grapes']`) required
cidr_blockstringBase CIDR block which will be divided into subnet CIDR blocks (e.g. `10.0.0.0/16 required
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tag required
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi required
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will required
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length. required
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by required
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` required
availability_zonestringAvailability Zone required
vpc_idstringVPC ID required
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'st required
enabledboolSet to false to prevent the module from creating any resources required
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indi required
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu required
private_network_acl_idstringNetwork ACL ID that will be added to the subnets. If empty, a new ACL will be cr""
public_network_acl_egresslist(object( { rule_Public network egress ACL rules[ { "action": "allow", "cidr_b
private_network_acl_egresslist(object( { rule_Private network egress ACL rules[ { "action": "allow", "cidr_b
nat_enabledboolEnable/disable NAT Gatewaytrue
eni_idstringAn ID of a network interface which is used as a default route in private route t""
map_public_ip_on_launch_enabledboolEnable/disable map_public_ip_on_launch subnet attribute.false
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
ngw_idstringNAT Gateway ID which will be used as a default route in private route tables (e.""
private_network_acl_ingresslist(object( { rule_Private network ingress ACL rules[ { "action": "allow", "cidr_b
typestringType of subnets (`private` or `public`)"private"
public_network_acl_ingresslist(object( { rule_Public network ingress ACL rules[ { "action": "allow", "cidr_b
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
max_subnetsnumberMaximum number of subnets which can be created. This variable is being used for 16
igw_idstringInternet Gateway ID which will be used as a default route in public route tables""
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
public_network_acl_idstringNetwork ACL ID that will be added to the subnets. If empty, a new ACL will be cr""
Outputs (6)
ngw_public_ip — Public IP address of the NAT Gateway
subnet_ids — Subnet IDs
route_table_ids — Route table IDs
named_subnet_ids — Map of subnet names to subnet IDs
ngw_id — NAT Gateway ID
ngw_private_ip — Private IP address of the NAT Gateway
Resources (7)
aws_eipaws_nat_gatewayaws_network_aclaws_routeaws_route_tableaws_route_table_associationaws_subnet
Details
FrameworkTerraform Module
LanguageHCL
Version0.12.0
Cloud AWS
★ Stars47
Forks35
Total downloads131.4k
Inputs35
Outputs6
Resources7
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated