Skip to content

Commit

Permalink
RS-165 Adds extra tags for remaining snapshot scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-d committed Apr 12, 2024
1 parent 7a33620 commit 93dad2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions templates/aem-tools/live-snapshot-backup.sh.epp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ translate_exit_code() {
return "$exit_code"
}

<% $aws_tags.each | Integer $index, Hash $aws_tag | { -%>
echo "key: <%= $aws_tag['Key'] %>"
echo "value: <%= $aws_tag['Value'] %>"
<% } -%>

# "snapshot_backup" is used for checking the processes in order to
# avoid offline_snapshot_backup and live_snapshot_backup running at the same time

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ else
--tag "StackPrefix=<%= $stack_prefix %>" \
--tag "SnapshotType=offline" \
--tag "AemId=<%= $aem_repo_device['aem_id'] %>" \
<%- $aws_tags.each | Integer $index, Hash $aws_tag | { -%>
--tag "<%= $aws_tag['Key'] %>=<%= $aws_tag['Value'] %>" \
<%- } -%>
<%= $aem_repo_device['device_name'] %>)
translate_exit_code "$?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ else
--tag "StackPrefix=<%= $stack_prefix %>" \
--tag "SnapshotType=offline" \
--tag "AemId=<%= $aem_repo_device['aem_id'] %>" \
<%- $aws_tags.each | Integer $index, Hash $aws_tag | { -%>
--tag "<%= $aws_tag['Key'] %>=<%= $aws_tag['Value'] %>" \
<%- } -%>
<%= $aem_repo_device['device_name'] %>)
translate_exit_code "$?"
Expand Down
3 changes: 3 additions & 0 deletions templates/aem-tools/offline-snapshot-backup-full-set.sh.epp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ else
--tag "StackPrefix=<%= $stack_prefix %>" \
--tag "SnapshotType=offline" \
--tag "AemId=<%= $aem_repo_device['aem_id'] %>" \
<%- $aws_tags.each | Integer $index, Hash $aws_tag | { -%>
--tag "<%= $aws_tag['Key'] %>=<%= $aws_tag['Value'] %>" \
<%- } -%>
<%= $aem_repo_device['device_name'] %>)
translate_exit_code "$?"
Expand Down

0 comments on commit 93dad2b

Please sign in to comment.