utils

cloudposse/utils/aws

Terraform Module HCL AWS

Utility functions for use with Terraform in the AWS environment

Install
module "utils" {
source = "cloudposse/utils/aws"
version = "1.4.0"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-utils ![Latest Release](https://github.com/cloudposse/terraform-aws-utils/releases/latest) ![Slack Community](https://slack.cloudposse.com) ![Discourse Forum](https://ask.sweetops.com/) This terraform-aws-utils module provides some simple utilities to use when working in AWS. --- > [!NOTE] > This project is part of Cloud Posse's comprehensive "SweetOps" approach towards DevOps. > > > 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! [![README Header][readme_header_img]][readme_header_link] Introduction This terraform-aws-utils module provides some simple utilities to use when working in AWS. More complex utilities are available through Cloud P

Inputs (20)
NameTypeDescriptionDefault
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
elb_logging_regionstringFull region (e.g. `us-east-1`) where ELB logging is taking place. Required to ge""
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
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{}
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
enabledboolSet to false to prevent the module from creating any resourcesnull
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
elb_logging_bucket_resource_arnstringThe AWS Resource ARN to use in the policy granting access to Load Balancer Loggi""
Outputs (7)
region_az_alt_code_maps — Collection of maps converting between official AWS Region, Availability Zone, and Local Zone codes a
region_display_name_map — Map of full region names to user-friendly display names (e.g. "eu-west-3" = "Europe (Paris)").
elb_logging_account — Map of full region to ELB logging account
elb_logging_s3_bucket_policy_json — The S3 bucket policy (in JSON) to attach to the S3 bucket to allow Load Balancer logs to be added. R
enabled_regions — A list of regions that are enabled in the account
disabled_regions — A list of regions that are disabled in the account
all_regions — A list of all regions regardless of availability to the account
Details
FrameworkTerraform Module
LanguageHCL
Version1.4.0
Cloud AWS
★ Stars64
Forks14
Total downloads36.9M
Inputs20
Outputs7
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated