SFN - fix InvalidARN exception on start_execution (#3007)

This commit is contained in:
Aidan Rowe 2020-05-25 00:06:02 +10:00 committed by GitHub
commit 93feeec1b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View file

@ -95,7 +95,10 @@ class StepFunctionResponse(BaseResponse):
def start_execution(self):
arn = self._get_param("stateMachineArn")
name = self._get_param("name")
execution = self.stepfunction_backend.start_execution(arn, name)
try:
execution = self.stepfunction_backend.start_execution(arn, name)
except AWSError as err:
return err.response()
response = {
"executionArn": execution.execution_arn,
"startDate": execution.start_date,