aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.55k stars 3.87k forks source link

CodeBuild: Custom Lambda Images #29964

Open stefenAMZ opened 5 months ago

stefenAMZ commented 5 months ago

Describe the feature

CDK with AWS Lambda compute in AWS CodeBuild does not currently support Custom Images from ECR.

Use Case

Currently there is demand to use Lambda as a build environment for CodeBuild. However the Curated images don't cover every use case and the need for a custom image for Lambda compute is needed.

This is currently supported within the Console and is only not supported in CDK.

Proposed Solution

We need to expand our implementation to support custom images and not just the curated images. The functionality should match that of the console. Custom Image -> Lambda -> Linux or Arm -> ECR -> Image.

Other Information

Currently the only ask is that the we can match what is available in the console.

Currently the documentation states there is no support for this.

https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_codebuild/README.html

Acknowledgements

CDK version used

2.139

Environment details (OS name and version, etc.)

Linux

khushail commented 5 months ago

Thanks @stefenAMZ for submitting this request.

nmussy commented 5 months ago

I can take this on, the PR should be up shortly 👍