Skip to content

(s3): L2 Construct for S3 Object Lambda #13675

@NukaCody

Description

@NukaCody

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions