Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(func): add support for asset read grants #284

Merged
merged 3 commits into from
Jan 5, 2024

Conversation

hoegertn
Copy link
Contributor

@hoegertn hoegertn commented Jan 4, 2024

  • Please check if the PR fulfills these requirements
  • The commit message describes your change
  • Tests for the changes have been added if possible (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

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.

  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)?

  • Does this PR introduce a breaking change? (What changes might users need to make in their setup due to this PR?)

No

  • Other information:

hoegertn and others added 3 commits January 5, 2024 00:51
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.
Signed-off-by: github-actions <[email protected]>
@mergify mergify bot merged commit c174d59 into main Jan 5, 2024
11 checks passed
@mergify mergify bot deleted the feature/lambda-grant-read-asset branch January 5, 2024 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant