Skip to content

Commit

Permalink
Merge pull request #3754 from ministryofjustice/csr/ami-ssm-create-sn…
Browse files Browse the repository at this point in the history
…apshot

using correct action for createsnapshot task
  • Loading branch information
haitchison authored Oct 23, 2023
2 parents aa7d1a6 + ba15bf3 commit 4877cb4
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ parameters:

mainSteps:
- name: CreateSnapshot
action: aws:createSnapshot
action: aws:runDocument
inputs:
InstanceId: "{{ InstanceId }}"
VolumeId: "{{ VolumeId }}"
description: "{{ SnapshotName }}"
documentType: SSMDocument
documentPath: AWS-CreateSnapshot
documentParameters:
VolumeId: "{{ VolumeId }}"
description: "{{ SnapshotName }}"
onFailure: Abort

- name: getRootVolumeSpace
Expand Down Expand Up @@ -162,7 +164,7 @@ mainSteps:
- |
Write-Output "Image ID: $ImageId"
- name: waitForAMI
- name: waitForAMI # update this
action: aws:waitForImages
inputs:
imageIds: ["{{ createImage.ImageId }}"]
Expand Down

0 comments on commit 4877cb4

Please sign in to comment.