Feature Request: Caching for AWS CodeBuild projects #2842
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/codebuild
Issues and PRs that pertain to the codebuild service.
Milestone
This issue was originally opened by @kaofelix as hashicorp/terraform#17019. It was migrated here as a result of the provider split. The original body of the issue is below.
AWS CodeBuild projects support caching of dependencies for a build. This allows a user to specify an S3 bucket and a path within that bucket that will be used as cache storage for paths specified in a section of the buildspec YAML file.
I've seen this introduced in this blog post, where it is shown how to configure a CodeBuild project with caching from the AWS dashboard. The example use case is about Maven dependencies, which is close to my team's use case, albeit for Gradle instead. Using caching would help speed up our build significantly and since we are using terraform to manage our pipeline, it would be great to be able to do it from there.
Expected Behavior
It would be helpful if the
aws_codebuild_project
resource supported cache configuration. Maybe something along the lines of:Factoids
From the dashboard, it seems that it's only possible to add cache from a newly created project, but not adding it to an existing one when editing. However, boto3 seems to support configuring cache when calling
update_project
in an existing project, so I guess it should be possible programatically somehow. I'm not familiar with how this is implemented in Terraform as I didn't have time to look at the source yet.The text was updated successfully, but these errors were encountered: