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 回答
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
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则