-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(s3): L2 Construct for S3 Object Lambda #13675
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS Lambda@aws-cdk/aws-s3Related to Amazon S3Related to Amazon S3effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.feature/new-constructA request for a new L2 constructA request for a new L2 constructp2
Description
L2 Construct for S3 Object Lambda
Use Case
To allow the ability to add custom logic in front of S3 Get Request
Proposed Solution
- @aws-cdk/aws-lambda-event-sources
- @aws-cdk/aws-lambda
- @aws-cdk/aws-s3
const fn = new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.NODEJS_12_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
});
const bucket = new Bucket(this, 'MyEncryptedBucket', {
encryption: BucketEncryption.KMS
objectLambda: fn
});Other
- https://aws.amazon.com/about-aws/whats-new/2021/03/s3-object-lambda-allows-you-to-add-your-own-code-to-s3-get-requests-to-modify-and-process-data-as-it-is-returned-to-an-application/
- https://aws.amazon.com/blogs/aws/introducing-amazon-s3-object-lambda-use-your-code-to-process-data-as-it-is-being-retrieved-from-s3/
Does not seem to have CFN support yet, so may have to wait a little bit.
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS Lambda@aws-cdk/aws-s3Related to Amazon S3Related to Amazon S3effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.feature/new-constructA request for a new L2 constructA request for a new L2 constructp2