{"id":19508937,"url":"https://github.com/rhythmictech/terraform-aws-asg-tag-transform","last_synced_at":"2026-04-29T15:09:34.549Z","repository":{"id":98716626,"uuid":"191964382","full_name":"rhythmictech/terraform-aws-asg-tag-transform","owner":"rhythmictech","description":"Data-only module that transforms a tag map as used by most AWS resources into a list of tags as required by `aws_autoscaling_group`","archived":false,"fork":false,"pushed_at":"2019-06-24T20:36:12.000Z","size":18,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T11:41:03.028Z","etag":null,"topics":["autoscaling-groups","aws","terraform","terraform-module","terraform-modules"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/rhythmictech/asg-tag-transform/aws","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhythmictech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-14T15:13:53.000Z","updated_at":"2021-06-26T10:16:09.000Z","dependencies_parsed_at":"2023-05-24T21:45:42.319Z","dependency_job_id":null,"html_url":"https://github.com/rhythmictech/terraform-aws-asg-tag-transform","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-asg-tag-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-asg-tag-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-asg-tag-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-asg-tag-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhythmictech","download_url":"https://codeload.github.com/rhythmictech/terraform-aws-asg-tag-transform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761095,"owners_count":19853254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoscaling-groups","aws","terraform","terraform-module","terraform-modules"],"created_at":"2024-11-10T23:10:25.704Z","updated_at":"2026-04-29T15:09:34.436Z","avatar_url":"https://github.com/rhythmictech.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-asg-tag-transform\nData-only module that transforms a tag map as used by most AWS resources into a list of tags as required by `aws_autoscaling_group`\n\n## Example Usage\n### Propagate All:\n```terraform\nlocals {\n  tags = {\n    owner = \"Jane Doe\"\n    key2  = \"value2\"\n  }\n}\n\nresource \"aws_launch_configuration\" \"example\" {\n  name_prefix          = \"example-\"\n  image_id             = \"ami-xxxxxxxx\"\n  instance_type        = \"t3.micro\"\n}\n\nmodule \"example_asg_tags\" {\n  source  = \"rhythmictech/asg-tag-transform/aws\"\n  version = \"1.0.0\"\n  tag_map = merge(\n    local.tags,\n    {\n      Name = \"example-asg\"\n    }\n  )\n}\n\nresource \"aws_autoscaling_group\" \"example\" {\n  name_prefix          = \"example-\"\n  max_size             = 1\n  min_size             = 1\n  launch_configuration = aws_launch_configuration.example.name\n  tags                 = module.example_asg_tags.tag_list\n}\n```\n\n### Mixed Propagation:\n```terraform\nlocals {\n  tags = {\n    owner = \"Jane Doe\"\n    key2  = \"value2\"\n  }\n}\n\nresource \"aws_launch_configuration\" \"example\" {\n  name_prefix          = \"example-\"\n  image_id             = \"ami-xxxxxxxx\"\n  instance_type        = \"t3.micro\"\n}\n\nmodule \"example_asg_tags_propagated\" {\n  source  = \"rhythmictech/asg-tag-transform/aws\"\n  version = \"1.0.0\"\n  tag_map = local.tags\n}\n\nmodule \"example_asg_tags_not_propagated\" {\n  source  = \"rhythmictech/asg-tag-transform/aws\"\n  version = \"1.0.0\"\n  propagate_at_launch = false\n  tag_map = {\n    Name = \"example-asg\"\n  }\n}\n\nresource \"aws_autoscaling_group\" \"example\" {\n  name_prefix          = \"example-\"\n  max_size             = 1\n  min_size             = 1\n  launch_configuration = aws_launch_configuration.example.name\n  \n  tags = concat(\n    module.example_asg_tags_propagated.tag_list,\n    module.example_asg_tags_not_propagated.tag_list\n  )\n}\n```\n\n## Inputs\n| Name | Description | Type | Default | Required |\n|------|-------------|:----:|:-----:|:-----:|\n| tag\\_map | Map of tags in format used by most AWS resources (`{key = \"value\"}`) | map(string) | none | yes |\n| propagate\\_at\\_launch | Whether ASG tags should propagate to instances | bool | `true` | no |\n\n## Outputs\n| Name | Description |\n|------|-------------|\n| tag\\_list | List of tag maps in format required by `aws_autoscaling_group` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhythmictech%2Fterraform-aws-asg-tag-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhythmictech%2Fterraform-aws-asg-tag-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhythmictech%2Fterraform-aws-asg-tag-transform/lists"}