Skip to content

(amplify): Enable the possibility to configure buildImage #15016

Open
@desoss

Description

@desoss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-amplifyRelated to AWS Amplifyfeature-requestA feature should be added or improved.needs-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.p3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions