Skip to content

Commit

Permalink
feat(func): add support for asset read grants
Browse files Browse the repository at this point in the history
Added a new method `grantReadAssets` to the `LambdaFunction` class that grants the Lambda function read access to the asset bucket configured via props. It throws an error if no asset bucket is configured.

This update allows Lambda functions within the CDK constructs to easily gain the necessary permissions to read assets, which is useful when the Lambda function needs to interact with assets.
  • Loading branch information
hoegertn committed Jan 4, 2024
1 parent 4e0356f commit 768f0c3
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/constructs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/constructs/assets/search.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/constructs/classes/LambdaFunction.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/lambda/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/lambda/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/projen/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 768f0c3

Please sign in to comment.