-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-codebuild: The default image of aws/codebuild/standard:1.0 results in slow provisioning times #23096
Comments
This is defined here
Something like this we'd need to have a feature flag to adjust, in case anyone is using the default value intentionally and doesn't desire that to change |
Is there a reference that documents the planned release schedule or planned end of maintenance for these From an end user standpoint, I don't mind adding a couple of lines to use a different image. The issue is there was nothing warning me that I should not use the default settings -- or that they referred to an unsupported image. At minimum, this could this be called out more clearly in the docs. How about also marking When I run I'm happy to work on a PR for some of these changes but wanted to confirm direction first. |
Thanks again for the request and your input. If you're still interested in continuing this discussion, let's do so in #16707 |
|
…ined (#28533) As per these documents, the following build image is not actively maintained, so I added @deprecated tag in this PR. - `standard` - `STANDARD_1_0` - `STANDARD_2_0` - `STANDARD_3_0` - `STANDARD_4_0` - `amazonlinux2-x86_64-standard` - `AMAZON_LINUX_2` - `AMAZON_LINUX_2_2` - `AMAZON_LINUX_2_3` - `amazonlinux2-aarch64-standard` - `AMAZON_LINUX_2_STANDARD_1_0` https://github.com/aws/aws-codebuild-docker-images?tab=readme-ov-file#image-maintenance https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html relates: #23096 (comment), #16707 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ined (aws#28533) As per these documents, the following build image is not actively maintained, so I added @deprecated tag in this PR. - `standard` - `STANDARD_1_0` - `STANDARD_2_0` - `STANDARD_3_0` - `STANDARD_4_0` - `amazonlinux2-x86_64-standard` - `AMAZON_LINUX_2` - `AMAZON_LINUX_2_2` - `AMAZON_LINUX_2_3` - `amazonlinux2-aarch64-standard` - `AMAZON_LINUX_2_STANDARD_1_0` https://github.com/aws/aws-codebuild-docker-images?tab=readme-ov-file#image-maintenance https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html relates: aws#23096 (comment), aws#16707 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
Running a Hello World CodeBuild Project consistently takes 2+ minutes to provision yet only seconds to execute. This appears to be due to the AWS CDK using aws/codebuild/standard:1.0 by default. According to the references below, the latest image for Ubuntu 18.04 is aws/codebuild/standard:4.0, and it appears that only the latest images are cached.
Expected Behavior
Per the AWS CodeBuild docs: "By default, projects use a small instance with an Ubuntu 18.04 image. You can use the environment property to customize the build environment."
I expected the default image to be cached since presumably most people new to the CDK (like me) would use the default. I further expected it to be the latest Ubuntu 18.04 image, which appears to be aws/codebuild/standard:4.0.
Current Behavior
The default image used is aws/codebuild/standard:1.0, which takes 2+ minutes to provision.
Reproduction Steps
Possible Solution
I provided a value for the build image, and it reduced provisioning times to under 30 seconds, which is a substantial improvement:
Additional Information/Context
No response
CDK CLI Version
2.51.1 (build 3d30cdb)
Framework Version
No response
Node.js Version
v14.18.2
OS
Mac OS Ventura 13.0.1
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: