Step Function Task stuck "In Progress" if no permission to read CodeBuild status

0

Hello,

I am using Step Functions with the arn:aws:states:::codebuild:startBuild.sync task. The necessary permissions are documented here.

I noticed that there is no error and the task will remain "In Progress" when one forgets to add the codebuild:BatchGetBuilds and codebuild:BatchGetReports permissions to the step function's role. I think it would be a good idea to check if these permissions are given and to throw an error if they aren't.

Best regards, Moritz

1 Antwort
1

Hi Moritz, it is always recommended to set a timeout for your tasks in Step Functions to avoid such cases, check this link for your reference : https://docs.aws.amazon.com/step-functions/latest/dg/sfn-stuck-execution.html And here is the list of all other best practices for your reference : https://docs.aws.amazon.com/step-functions/latest/dg/sfn-best-practices.html

AWS
beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen