aws-control-tower-customizations
aws-control-tower-customizations copied to clipboard
New feature: Lambda Compute for CodeBuild
Is your feature request related to a problem? Please describe. IHAC complaining about pipeline execution taking too long (~19 mins)
Describe the feature you'd like Please update CodeBuild Compute type to "Lambda", so the pipeline execution can be quicker and cheaper.
Additional context
Tried to update it by myself but faced several dependencies issues, it would need a custom Docker Image for Lambda Compute.
What I´ve did:
Replaced in the original template:
Type: LINUX_CONTAINER by LINUX_LAMBDA_CONTAINER ComputeType: BUILD_GENERAL1_SMALL by BUILD_LAMBDA_2GB Image: "aws/codebuild/standard:7.0" by "aws/codebuild/amazonlinux-x86_64-lambda-standard:python3.11"
Errors executing Build project:
/tmp/codebuild/output/tmp/script.sh: line 4: apt-get: command not found
/tmp/codebuild/output/tmp/script.sh: line 4: locale-gen: command not found
install_stage_dependencies.sh: line 41: gem: command not found
[Container] 2024/09/28 21:53:24.587173 Command failed with exit status 127