You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a requirement where I need to prevent the execution of a subsequent action if the preceding one fails within the same policy. Is there currently support for conditional action execution in policies for below use case ?
Use Case:
For example, in an EBS snapshot copy scenario, I want to ensure that the delete action does not run if the copy action fails. This is to avoid deleting a snapshot that wasn’t successfully copied.
Encrypted: false
actions:
type: delete
Is there a way to enforce that the delete policy only runs if the snapshot was successfully copied (i.e., the copy action didn’t fail)?
Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I have a requirement where I need to prevent the execution of a subsequent action if the preceding one fails within the same policy. Is there currently support for conditional action execution in policies for below use case ?
Use Case:
For example, in an EBS snapshot copy scenario, I want to ensure that the delete action does not run if the copy action fails. This is to avoid deleting a snapshot that wasn’t successfully copied.
Here’s a simplified version of my policy setup:
policies:
name: encrypt-unencrypted-ebs-snapshots
resource: ebs-snapshot
filters:
Encrypted: false
actions:
type: copy
encrypted: true
target_key: alias/aws/ebs
target_region:
name: delete-unencrypted-ebs-snapshots
resource: ebs-snapshot
filters:
Encrypted: false
actions:
type: delete
Is there a way to enforce that the delete policy only runs if the snapshot was successfully copied (i.e., the copy action didn’t fail)?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions