mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
Merged in DCD-890-fix-variable-name-typo-in-write-tags (pull request #79)
DCD-890 fix variable name typo in write tags * DCD-869: Change missing variable reference in write-tags * DCD-869: Add commit and timestamp prefix to tags generated from ansible to be consistent with tags in templates Approved-by: Steve Smith <ssmith@atlassian.com>
This commit is contained in:
@@ -33,13 +33,13 @@
|
|||||||
ResourceId: "{{ ec2_autoscaling_group }}"
|
ResourceId: "{{ ec2_autoscaling_group }}"
|
||||||
PropagateAtLaunch: true
|
PropagateAtLaunch: true
|
||||||
Key: "atl:deployment:commit-id"
|
Key: "atl:deployment:commit-id"
|
||||||
Value: "{{ git_out.stdout }}"
|
Value: "COMMIT: {{ git_out.stdout }}"
|
||||||
|
|
||||||
- ResourceType: "auto-scaling-group"
|
- ResourceType: "auto-scaling-group"
|
||||||
ResourceId: "{{ ec2_autoscaling_group }}"
|
ResourceId: "{{ ec2_autoscaling_group }}"
|
||||||
PropagateAtLaunch: true
|
PropagateAtLaunch: true
|
||||||
Key: "atl:deployment:first-run-timestamp"
|
Key: "atl:deployment:first-run-timestamp"
|
||||||
Value: "{{ ansible_date_time.iso8601 }}"
|
Value: "TIMESTAMP: {{ ansible_date_time.iso8601 }}"
|
||||||
|
|
||||||
- ResourceType: "auto-scaling-group"
|
- ResourceType: "auto-scaling-group"
|
||||||
ResourceId: "{{ ec2_autoscaling_group }}"
|
ResourceId: "{{ ec2_autoscaling_group }}"
|
||||||
@@ -63,8 +63,8 @@
|
|||||||
region: "{{ ansible_ec2_placement_region }}"
|
region: "{{ ansible_ec2_placement_region }}"
|
||||||
resource: "{{ ansible_ec2_instance_id }}"
|
resource: "{{ ansible_ec2_instance_id }}"
|
||||||
tags:
|
tags:
|
||||||
"atl:deployment:commit-id": "{{ git_out.stdout }}"
|
"atl:deployment:commit-id": "COMMIT: {{ git_out.stdout }}"
|
||||||
"atl:deployment:first-run-timestamp": "{{ ansible_date_time.iso8601 }}"
|
"atl:deployment:first-run-timestamp": "TIMESTAMP: {{ ansible_date_time.iso8601 }}"
|
||||||
"atl:deployment:is-stack-restored": "{{ atl_restore_required_tag_value.0 }}"
|
"atl:deployment:is-stack-restored": "{{ atl_restore_required_tag_value.0 }}"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user