File tree 2 files changed +9
-17
lines changed
2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ Use [the awesome `gossm` project](https://github.com/gjbae1212/gossm).
82
82
83
83
| Name | Source | Version |
84
84
| ------| --------| ---------|
85
- | <a name =" module_asg_label " ></a > [ asg\_ label] ( #module\_ asg\_ label ) | cloudposse/label/null | 0.25.0 |
86
85
| <a name =" module_kms_key " ></a > [ kms\_ key] ( #module\_ kms\_ key ) | cloudposse/kms-key/aws | 0.12.1 |
87
86
| <a name =" module_logs_bucket " ></a > [ logs\_ bucket] ( #module\_ logs\_ bucket ) | cloudposse/s3-bucket/aws | 3.1.2 |
88
87
| <a name =" module_logs_label " ></a > [ logs\_ label] ( #module\_ logs\_ label ) | cloudposse/label/null | 0.25.0 |
Original file line number Diff line number Diff line change 1
- module "asg_label" {
2
- source = " cloudposse/label/null"
3
- version = " 0.25.0"
4
-
5
- context = module. this . context
6
-
7
- # This tag attribute is required.
8
- # See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group#propagate_at_launch
9
- additional_tag_map = {
10
- propagate_at_launch = " true"
11
- }
12
- }
13
-
14
1
module "role_label" {
15
2
source = " cloudposse/label/null"
16
3
version = " 0.25.0"
@@ -331,9 +318,15 @@ resource "aws_launch_template" "default" {
331
318
}
332
319
333
320
resource "aws_autoscaling_group" "default" {
334
- name_prefix = " ${ module . asg_label . id } -asg"
335
- tags = module. asg_label . tags_as_list_of_maps
336
-
321
+ name_prefix = " ${ module . this . id } -asg"
322
+ dynamic "tag" {
323
+ for_each = module. this . tags
324
+ content {
325
+ key = tag. key
326
+ value = tag. value
327
+ propagate_at_launch = true
328
+ }
329
+ }
337
330
launch_template {
338
331
id = aws_launch_template. default . id
339
332
version = " $Latest"
You can’t perform that action at this time.
0 commit comments