aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

feat(codebuild): add ec2 image types

Open okasyun opened this issue 7 months ago • 1 comments

Issue # (if applicable)

Closes https://github.com/aws/aws-cdk/issues/32978.

Reason for this change

The CodeBuild CDK code needs to add new image types to match newly supported environment types: LINUX_EC2, ARM_EC2 and WINDOWS_EC2.

These three imageId values were used because they are the only ones supported when launching EC2-based CodeBuild environments through both CloudFormation and the AWS API. Other image IDs resulted in errors or were not accepted for the LINUX_EC2, WINDOWS_EC2 and ARM_EC2 environment types.

  • LINUX_EC2:aws/codebuild/ami/amazonlinux-x86_64-base:latest
  • ARM_EC2 aws/codebuild/ami/amazonlinux-arm-base:latest
  • WINDOWS_EC2:aws/codebuild/ami/windows-base:2022

Description of changes

Add new image types LINUX_EC2, ARM_EC2 and WINDOWS_EC2 into file.

Description of how you validated changes

I created unit tests and integration tests. Both were successful.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

okasyun avatar May 06 '25 07:05 okasyun

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 7336f4c3e9be665655f8a6391eaf066d719ed0ca
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

aws-cdk-automation avatar May 11 '25 07:05 aws-cdk-automation