aws-samples / aws-samples/bedrock-chat

[BUG] StepFunction ExecutionFailed due to Unable to assume the service linked role

Open
#494 0 comments 1 reaction 1 assignee Claimed by @statefb View on GitHub
bug identified
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

Screenshot 2024-08-18 at 10 36 45 AM

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.