question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change default CodeBuild Project build container to version 4 for faster codebuild builds

See original GitHub issue

Short Description

Change default CodeBuild Project build container to version 4

Use Case

When creating a codebuild project, the default project buildimage is Linux Standard v1.0. Because AWS only caches latest versions of containers, in this case version 4, a CodeBuild build with the default container version 1, the provision time takes up to 4/5 minutes instead of seconds.

Proposed Solution

Change default BuildEnvironment.LinuxBuildImage.STANDARD_1_0 to version 4 => BuildEnvironment.LinuxBuildImage.STANDARD_4_0

found in aws-cdk/packages/@aws-cdk/aws-codebuild/lib/project.ts

 /**
   * Build environment to use for the build.
   *
   * @default BuildEnvironment.LinuxBuildImage.STANDARD_1_0
   */

This is a 🚀 Feature Request

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
skinny85commented, Mar 1, 2022

You can assume a Role in your buildspec. The Role of the Project needs the correct permissions.

1reaction
skinny85commented, Feb 28, 2022

You’re putting environment in the wrong place (you put it in the buildspec, while it’s a property of Project, like I linked to above).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build caching in AWS CodeBuild
Source cache mode caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between...
Read more >
Improve the Performance of Gradle Builds
If the change improved build times, make it permanent. If you don't see an improvement, remove the change and try another. Update versions....
Read more >
Build and share Docker images using AWS CodeBuild and ...
The Buildspec section tells CodeBuild where to find the buildspec.yml. The default will be in the top directory of the GitHub repository, but ......
Read more >
AWS CodeBuild - Towards AWS
We can associate AWS CodeCommit, GitHub, BitBucket, or AWS S3 with the AWS CodeBuild project. After the source code provider and the repository...
Read more >
Build Applications Locally Using AWS CodeBuild - YouTube
You just specify the location of your source code, choose your build settings, and CodeBuild runs build scripts for compiling, testing, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found