aws-samples / aws-samples/bedrock-chat
[BUG] StepFunction ExecutionFailed due to Unable to assume the service linked role
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 535
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 10
Description
## Describe the bug
**Filling out this field will help us investigate the issue efficiently. Providing detailed information allows us to set the appropriate priority. We appreciate your cooperation.**
A clear and concise description of what the bug is.
Seeing following error in StepFunction while creating new bot.
`{
"cause": "Unable to assume the service linked role. Please verify that the ECS service linked role exists. (Service: AmazonECS; Status Code: 400; Error Code: InvalidParameterException; Request ID: 38946c1a-7c0d-400d-a17c-61ec64104012; Proxy: null)",
"error": "ECS.InvalidParameterException"
}`
## To Reproduce
**Filling out this field will help us investigate the issue efficiently. Providing detailed information allows us to set the appropriate priority. We appreciate your cooperation.**
Steps to reproduce the behavior:
1. Deploy solution to a new AWS Account
2. Create new bot
## Screenshots
If applicable, add screenshots to help explain your problem.
## Additional context
Add any other context about the problem here.
Issue following command and redirve the step function can resolve the issue and create a new bot properly.
`aws iam create-service-linked-role --aws-service-name ecs.amazonaws.com`
Contributor guide
Assessment
This issue has not been assessed yet.