Skip to content

Commit bb83c29

Browse files
fix: enforce expected role
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d3594ca commit bb83c29

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/cdkConstructs/tests/constructs/RestApiGateway/LambdaEndpoint.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ describe("LambdaEndpoint construct", () => {
7373
template.hasResourceProperties("AWS::ApiGateway::Method", {
7474
HttpMethod: "GET",
7575
Integration: Match.objectLike({
76-
Type: "AWS_PROXY"
76+
Type: "AWS_PROXY",
77+
Credentials: {
78+
"Fn::GetAtt": [
79+
Match.stringLikeRegexp("^ApiGwRole.*$"),
80+
"Arn"
81+
]
82+
}
7783
})
7884
})
7985
})

0 commit comments

Comments
 (0)