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.

(amplify): Enable the possibility to configure buildImage

See original GitHub issue

Currently 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:open
  • Created 2 years ago
  • Reactions:7
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fab-mindflowcommented, Jun 21, 2021

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.

0reactions
dbartholomaecommented, Sep 3, 2022

It’s in the Amplify docs, if I remember correctly. There just aren’t much details.

Read more comments on GitHub >

github_iconTop 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 >

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