Skip to content

fivexl/terraform-aws-tag-generator

Repository files navigation

FivexL

AWS Tag Generator Terraform module

Simple tag generator for AWS resources based on FivexL expirience and best practices from AWS

Known AWS tags

  • ECS Capacity Provider add AmazonECSManaged=1 tag to ASG

Requirements

Name Version
terraform >= 0.13
external >= 2.0
bash -
git -

Providers

Name Version
external 2.3.1

Modules

No modules.

Resources

Name Type
external_external.git_module_source data source
external_external.git_origin_url data source

Inputs

Name Description Type Default Required
backup_enable pre templated tag default:backup:enable. Enable Backup for this resource string "" no
backup_frequency pre templated tag default:backup:frequency. Backup frequency (daily/weekly/monthly) string "" no
backup_other pre templated tag default:backup:other. Other for Backup string "" no
custom_numbers custom tags, which must be strings. e.g. (default:custom:mynumber = 5000) map(number) {} no
custom_prefix secondary level prefix for custom tags, which could be added by custom_strings and custom_numbers string "custom" no
custom_strings custom tags, which must be strings. e.g. (default:custom:mystring = "mystring") map(string) {} no
data_classification pre templated tag default:data:classification. Data classification (restricted/confidential) string "" no
data_other pre templated tag default:data:other. Other for Data string "" no
data_owner pre templated tag default:data:owner. Data Owner string "" no
data_pci pre templated tag default:data:pci. Resource contains PCI data string "" no
data_phi pre templated tag default:data:phi. Resource contains PHI data string "" no
data_pii pre templated tag default:data:pii. Resource contains PII data string "" no
environment_name pre templated tag default:environment:name. Environment name (production/staging/test) string "" no
environment_other pre templated tag default:environment:other. Other for Environment string "" no
environment_type pre templated tag default:environment:type. Environment type (shared/performance testing) string "" no
gc_enable pre templated tag default:garbage-collector:enable. Enable Garbage Collector for this resource string "" no
gc_other pre templated tag default:garbage-collector:other. Other for Garbage Collector string "" no
gc_ttl pre templated tag default:garbage-collector:time-to-live. Time to Live for Garbage Collector. Days. string "" no
git_other pre templated tag default:git:other. Other for Git string "" no
prefix main prefix for tags, which could be your organization name or project name string "default" no
separator separator for tags, e.g. (default:custom:mytag) string ":" no
terraform_managed pre templated tag default:terraform:managed. Tag resources witch managed by Terraform string "" no
terraform_other pre templated tag default:terraform:other. Other for Terraform string "" no
terraform_state pre templated tag default:terraform:state. Terraform state file location and key name string "" no

Outputs

Name Description
result result with tags object{}
result_asg_list result with list of tags for ASG tuple[object{}] propagate_at_launch=true
result_asg_list_false result with list of tags for ASG tuple[object{}] propagate_at_launch=false
result_awscc result with list of tags for AWS Cloud Control API terraform provider tuple[object{key=key, value=value}]
result_data_environment result with only data and environment tags. No more than 10 tags. Usefull for S3 Objects.
result_map map of results with tags

License

Apache 2 Licensed. See LICENSE for full details.