Skip to content

aws-codebuild: Add file systems to BuildEnvironment #24495

@lassiraa

Description

@lassiraa

Describe the feature

Introduce the ability to define file systems within the BuildEnvironment for aws-codebuild.

Use Case

Currently you're able to add file systems to a CodeBuild project using the console or by defining fileSystemLocations when initializing a CodeBuild Project using the cdk. However, in cases where the creation of CodeBuild projects are abstracted away, this is not possible. Such case is pipelines.CodePipeline that allows setting codeBuildDefaults' buildEnvironment, which allows for setting of buildImage, certificate, computeType, environmentVariables and privileged parameters, but not the fileSystemLocations. This feature would help greatly with mounting EFS drives for CodePipelines, as I am currently not aware of a method to do this simply with the CDK.

Proposed Solution

Add fileSystemLocations to BuildEnvironment struct and introduce way to set CodeBuild project's fileSystemLocations via the environment props.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.67.0

Environment details (OS name and version, etc.)

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-codebuildRelated to AWS CodeBuildeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions