Skip to content

Commit

Permalink
Fix: #327 Add retry mechanism to RevokeStateMachine to handle revocat…
Browse files Browse the repository at this point in the history
…ion failures
  • Loading branch information
tawoyinfa authored Jan 17, 2025
2 parents d1edd28 + 4791c2e commit 68013c3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,14 @@
},
"Resource": "arn:aws:states:::aws-sdk:ssoadmin:deleteAccountAssignment",
"ResultPath": "$.revoke",
"Retry": [
{
"ErrorEquals": ["ThrottlingException", "ServiceUnavailable", "InternalServerError"],
"IntervalSeconds": 3,
"BackoffRate": 2,
"MaxAttempts": 5
}
],
"Type": "Task"
},
"Revoked || Ended ?": {
Expand Down Expand Up @@ -1342,4 +1350,4 @@
}
},
"Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"9.2.1\",\"stackType\":\"custom-customCloudformation\",\"metadata\":{}}"
}
}

0 comments on commit 68013c3

Please sign in to comment.