Merged in DCD-890-extra-tags (pull request #75)

DCD-890: Add whether we are a restore to the persisted tags.

Approved-by: Varun Arbatti <varbatti@atlassian.com>
This commit is contained in:
Steve Smith
2020-01-21 22:53:02 +00:00

View File

@@ -36,6 +36,13 @@
Key: "atl:deployment:first-run" Key: "atl:deployment:first-run"
Value: "{{ ansible_date_time.iso8601 }}" Value: "{{ ansible_date_time.iso8601 }}"
- ResourceType: "auto-scaling-group"
ResourceId: "{{ ec2_autoscaling_group }}"
PropagateAtLaunch: true
Key: "atl:deployment:restored"
Value: "{{ atl_restore_required }}"
# Set the tags on the ASG and the local instance. We need to # Set the tags on the ASG and the local instance. We need to
# ignore errors as it's possible we don't have the permissions, # ignore errors as it's possible we don't have the permissions,
# and we can't check up-front. # and we can't check up-front.
@@ -53,6 +60,7 @@
tags: tags:
"atl:deployment:commit": "{{ git_out.stdout }}" "atl:deployment:commit": "{{ git_out.stdout }}"
"atl:deployment:first-run": "{{ ansible_date_time.iso8601 }}" "atl:deployment:first-run": "{{ ansible_date_time.iso8601 }}"
"atl:deployment:restored": "{{ atl_restore_required }}"
ignore_errors: true ignore_errors: true
when: when: