Skip to content

Commit aa1a775

Browse files
committed
fix: set iamRoleFallback to true for lambda gateway targets
Keep TARGET_TYPE_AUTH_CONFIG in sync with @aws/agentcore-cdk — lambda targets need GATEWAY_IAM_ROLE just like lambdaFunctionArn targets. Related: #1005
1 parent 3b7a0a5 commit aa1a775

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/schema/schemas/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const TARGET_TYPE_AUTH_CONFIG: Record<
5858
smithyModel: { authRequired: false, validAuthTypes: [], iamRoleFallback: true },
5959
apiGateway: { authRequired: false, validAuthTypes: ['API_KEY', 'NONE'], iamRoleFallback: true },
6060
mcpServer: { authRequired: false, validAuthTypes: ['OAUTH', 'NONE'], iamRoleFallback: false },
61-
lambda: { authRequired: false, validAuthTypes: ['OAUTH', 'NONE'], iamRoleFallback: false },
61+
lambda: { authRequired: false, validAuthTypes: ['OAUTH', 'NONE'], iamRoleFallback: true },
6262
lambdaFunctionArn: { authRequired: false, validAuthTypes: ['OAUTH', 'NONE'], iamRoleFallback: true },
6363
};
6464

0 commit comments

Comments
 (0)