Skip to content

Commit

Permalink
Item: hitachienergy#58 Desc: Add propagate tags from auto scaling groups
Browse files Browse the repository at this point in the history
  • Loading branch information
erzetpe committed Mar 29, 2019
1 parent 0573a32 commit 7b25d35
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@


resource "aws_autoscaling_group" "{{ specification.name }}" {
# todo: check availability zones in VPC
#availability_zones = [{% for availability_zone in specification.availability_zones %} "{{ availability_zone }}" {% if not loop.last %}, {% endif %} {% endfor %}]
name = "{{ specification.name }}"
max_size = "{{ specification.count }}"
Expand All @@ -27,7 +28,7 @@ resource "aws_autoscaling_group" "{{ specification.name }}" {
tag {
key = "Name"
value = "{{ specification.name }}"
propagate_at_launch = "false"
propagate_at_launch = "true"
}

{%- for tag in specification.tags %}
Expand All @@ -36,7 +37,7 @@ resource "aws_autoscaling_group" "{{ specification.name }}" {
key = "{{ tag_key }}"
value = "{% if tag_value is defined and tag_value|length %}{{ tag_value }}{% else %}-{% endif %}"
{%- endfor %}
propagate_at_launch = "false"
propagate_at_launch = "true"
}
{%- endfor %}

Expand Down

0 comments on commit 7b25d35

Please sign in to comment.