Skip to content

Commit c40d03a

Browse files
committed
fix: Don't add policies to pre-created roles in the stack
1 parent 1018dfd commit c40d03a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

e2e_tests/setup/integ-test-authentication.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ Resources:
142142
- "secretsmanager:*"
143143
Resource:
144144
- !Sub "arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:bedrock-agentcore-identity*"
145+
- !Sub "arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:Zen*"
145146
- Effect: Allow
146147
Action:
147148
- "s3:GetObject"

examples/servers/dog-facts/lib/dog-facts-mcp-server.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ export class DogFactsMcpServer extends cdk.Stack {
9494
},
9595
});
9696

97-
// Grant the Lambda function permission to read the secret
98-
apiKeySecret.grantRead(lambdaFunction);
99-
10097
// Create API Gateway for OAuth-based access
10198
this.createApiGateway(lambdaFunction, stackNameSuffix);
10299
}

0 commit comments

Comments
 (0)