Skip to content

Commit 50813a0

Browse files
committed
fix: Let integ tests pass gateway role
1 parent 700c58a commit 50813a0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

e2e_tests/setup/integ-test-authentication.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,17 @@ Resources:
5959
PolicyDocument:
6060
Version: "2012-10-17"
6161
Statement:
62-
# Allow integration tests to manage CloudFormation stacks to deploy the example MCP servers
62+
# Allow integration tests to manage CloudFormation stacks and Bedrock AgentCore Gateways to deploy the example MCP servers
6363
- Effect: Allow
6464
Action:
6565
- "cloudformation:*"
6666
Resource:
6767
- !Sub "arn:aws:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/LambdaMcpServer-*"
68+
- Effect: Allow
69+
Action:
70+
- "bedrock-agentcore:*"
71+
Resource:
72+
- !Sub "arn:aws:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:gateway/*"
6873
- Effect: Allow
6974
Action:
7075
- "ssm:GetParameter"
@@ -77,12 +82,7 @@ Resources:
7782
- "iam:PassRole"
7883
Resource:
7984
- !Sub "arn:aws:iam::${AWS::AccountId}:role/cdk-*-cfn-exec-role-${AWS::AccountId}-${AWS::Region}"
80-
# Allow integration tests to manage Bedrock AgentCore Gateways to deploy example MCP server endpoints
81-
- Effect: Allow
82-
Action:
83-
- "bedrock-agentcore:*"
84-
Resource:
85-
- !Sub "arn:aws:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:gateway/*"
85+
- !Sub "arn:aws:iam::${AWS::AccountId}:role/mcp-lambda-example-agentcore-gateways"
8686
# Allow CDK to manage templates and assets in the CDK bucket
8787
- Effect: Allow
8888
Action:

0 commit comments

Comments
 (0)