Skip to content

Commit

Permalink
docs(aws-lambda): update execution role service principal (#25242)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
vinayak-kukreja authored Apr 24, 2023
1 parent 1f4f6db commit c35ab9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ it appropriate permissions:

```ts
const myRole = new iam.Role(this, 'My Role', {
assumedBy: new iam.ServicePrincipal('sns.amazonaws.com'),
assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
});

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

0 comments on commit c35ab9f

Please sign in to comment.