-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_codebuild_project: cache config does not stick when cache type set to "NO_CACHE" #4113
Comments
Hey! I agree with your thoughts there, I think |
yes, you have a good example too. The discussion in there points this out, if i read correctly too |
Unfortunately I'm not sure the Terraform team will be able to address this in the near future, but I've added a comment to #2860 (comment) explaining what we've found here, hopefully someone can pick it up! From what I can tell, we need to apply a default of |
Followup PR submitted: #4134 |
The fix for this has been merged into master and will release with v1.14.1 of the AWS provider, likely later today. |
This has been released in version 1.14.1 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
@bflad : just tested this. It works like a charm. Many thanks for fixing this so quickly. 👍 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
I've been trying to build a
aws_codebuild_project
module where cache can be enabled/disabled conditionally.Although not officially documented,
cache.type
can be set toNO_CACHE
, which rather intuitively made me thing i could use this value to indicate cache should not be enabled, just like theartifacts.type = NO_ARTIFACTS
config, which it does.The caveat is that this value does not stick and reapplying the module causes terraform to plan modifications on this value over and over.
Terraform Version
0.11.6
AWS provider version
1.14.0
Affected Resource(s)
aws_codebuild_project
Terraform Configuration Files
Expected Behavior
Once applied, a new terraform apply should not trigger any modification
Actual Behavior
Reference:
I traced the discussion here
https://github.com/terraform-providers/terraform-provider-aws/pull/2860/files#r160149934
and while i get the rationale that drove to this behavior, I do think the
NO_CACHE
value should be available to users in a way that would stick, so that modules could conditionally enable caching, just like it's already possible to do withartifacts
, usingtype = NO_ARTIFACTS
.Also, when
cache.type
is set toNO_CACHE
, it should be possible not to definecache.location
.cc: @kaofelix, @bflad
The text was updated successfully, but these errors were encountered: