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 Answer
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
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions