Skip to content

Commit c35ab9f

Browse files
docs(aws-lambda): update execution role service principal (#25242)
There is a service principal mismatch between our `aws-lambda's Execution Role` example between [V1](https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-readme.html#execution-role) and [V2](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda-readme.html#execution-role) documentation. This PR is updating the V1 doc's service principal from `sns.amazonaws.com` to `lambda.amazonaws.com`. Closes #16427 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 1f4f6db commit c35ab9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ it appropriate permissions:
105105

106106
```ts
107107
const myRole = new iam.Role(this, 'My Role', {
108-
assumedBy: new iam.ServicePrincipal('sns.amazonaws.com'),
108+
assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
109109
});
110110

111111
const fn = new lambda.Function(this, 'MyFunction', {

0 commit comments

Comments
 (0)