(amplify): Enable the possibility to configure buildImage
See original GitHub issueCurrently in codebuild it’s possible to configure in the section buildSpec the object environment and its property buildImage.
This property is ignored in an amplify hosting app.
Use Case
Codebuild, by default, uses a build image version that seems to be old. Newer versions has many new dependencies installed. What I’d like to configure is something like this:
new amplify.App(this, 'test', {
sourceCodeProvider: ...,
buildSpec: codebuild.BuildSpec.fromObject({
version: '1.0',
frontend: {
....
buildSpec: codebuild.BuildSpec.fromObject({
version: '1.0',
frontend: {
environment: {
buildImage: LinuxBuildImage.STANDARD_5_0,
privileged: true,
computeType: ComputeType.SMALL,
....
},
The buildImage: LinuxBuildImage.STANDARD_5_0
has some dependecies missing in the current, default, old version, like jq (that seems to be exploited by many users in codebuild).
Proposed Solution
Please include buildSpec/environment/buildImage or a way to configure the image used by codebuild.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Custom build images and live package updates
Live package updates enable you to specify versions of packages and dependencies to use in the Amplify default build image. The default build...
Read more >Making an AWS Amplify Docker build image with elm-make on ...
First, I need to check my kernel flags, no doubt I will need to configure something the first time around. Rather than jumping...
Read more >Amplify Invalid feature flag configuration on build
Make sure also on the "Edit build image settings" to choose the Amplify CLI as it is not the first available option.
Read more >How to deploy a web with Amplify Hosting - Playing AWS
Configure build settings: Advanced settings are optional, allow you to reference your build image, add environment variables and override ...
Read more >Building a blog with AWS Amplify Console | CarriageReturn.Nl
In the old days the recipe for hosting your static web content on AWS required you to configure a combination of S3, Cloudfront,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like AWS::Amplify::App in CloudFormation has no custom build image property. If right, that means it is not even possible yet with Cfn constructs as a workaround.
It’s in the Amplify docs, if I remember correctly. There just aren’t much details.