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
CDK version used
2.67.0
Environment details (OS name and version, etc.)
Windows 10
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
CDK version used
2.67.0
Environment details (OS name and version, etc.)
Windows 10