@@ -59,20 +59,12 @@ Resources:
5959 PolicyDocument :
6060 Version : " 2012-10-17"
6161 Statement :
62- # Allow integration tests to manage CloudFormation stacks and Bedrock AgentCore Gateways to deploy the example MCP servers
62+ # Allow integration tests to manage CloudFormation stacks 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:*Gateway*"
71- - " bedrock-agentcore:*WorkloadIdentity"
72- - " bedrock-agentcore:*CredentialProvider"
73- - " bedrock-agentcore:*Token*"
74- Resource :
75- - !Sub " arn:aws:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:*"
7668 - Effect : Allow
7769 Action :
7870 - " ssm:GetParameter"
@@ -89,12 +81,6 @@ Resources:
8981 - " iam:PassRole"
9082 Resource :
9183 - !Sub " arn:aws:iam::${AWS::AccountId}:role/cdk-*-cfn-exec-role-${AWS::AccountId}-${AWS::Region}"
92- - !Sub " arn:aws:iam::${AWS::AccountId}:role/mcp-lambda-example-agentcore-gateways"
93- - Effect : Allow
94- Action :
95- - " secretsmanager:*"
96- Resource :
97- - !Sub " arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:bedrock-agentcore-identity*"
9884 # Allow CDK to manage templates and assets in the CDK bucket
9985 - Effect : Allow
10086 Action :
@@ -143,13 +129,26 @@ Resources:
143129 - " lambda:*"
144130 - " apigateway:*"
145131 - " logs:*"
146- - " bedrock-agentcore:*"
147132 Resource : " *"
133+ - Effect : Allow
134+ Action :
135+ - " bedrock-agentcore:*Gateway*"
136+ - " bedrock-agentcore:*WorkloadIdentity"
137+ - " bedrock-agentcore:*CredentialProvider"
138+ - " bedrock-agentcore:*Token*"
139+ Resource :
140+ - !Sub " arn:aws:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:*"
148141 - Effect : Allow
149142 Action :
150143 - " iam:PassRole"
151144 Resource :
152145 - !GetAtt LambdaFunctionsRole.Arn
146+ - !Sub " arn:aws:iam::${AWS::AccountId}:role/mcp-lambda-example-agentcore-gateways"
147+ - Effect : Allow
148+ Action :
149+ - " secretsmanager:*"
150+ Resource :
151+ - !Sub " arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:bedrock-agentcore-identity*"
153152 - Effect : Allow
154153 Action :
155154 - " s3:GetObject"
0 commit comments