-
Notifications
You must be signed in to change notification settings - Fork 630
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
resource/cloudflare_zone_cache_reserve: add a new resource type #2642
resource/cloudflare_zone_cache_reserve: add a new resource type #2642
Conversation
changelog detected ✅ |
1753c28
to
1f0589f
Compare
Unit tests:
Acceptance tests:
|
return | ||
}, | ||
}, | ||
"enabled": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To the reviewer:
I made this to be a required attribute on purpose, as this has both a monetary value attached to it and performance side-effects when enabled (or disabled), especially since it requires a dedicated pricing plan to be enabled. As such, the user has to explicitly choose to enable or disable this feature of their zone.
Thus, no default setting is being offered here.
internal/sdkv2provider/resource_cloudflare_zone_cache_reserve.go
Outdated
Show resolved
Hide resolved
internal/sdkv2provider/resource_cloudflare_zone_cache_reserve.go
Outdated
Show resolved
Hide resolved
Updated unit and acceptance tests following addressing review feedback: #2642 (comment) |
fec4eb4
to
fb71013
Compare
Add a new resource that can be used to manage a Cache Reserve feature of a given zone. While at it, add a new data source to complete the newly added resource so that the current status of the Cache Reserve feature can be read for a given zone. Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
fb71013
to
57ddc45
Compare
thanks @kwilczynski, appreciate the effort getting this one over the line 👏 🏆 |
This functionality has been released in v4.12.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Add a new resource that can be used to manage a Cache Reserve feature of a given zone.
While at it, add a new data source to complete the newly added resource so that the current status of the Cache Reserve feature can be read for a given zone.
Closes: #2420
Related to:
More details can be found at: