-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Labels
Description
Community Note
- Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
I use docker_config resources for text files in all my use cases. It would be helpful if terraform could show a proper diff of this text on change instead of a diff of the base64 encoded value. I currently have a pattern of using output for each of my docker_config raw values, but this is excessive and noisy.
New or Affected Resource(s)
- docker_config
Potential Terraform Configuration
Instead of using output to get a diff:
resource "docker_config" "prometheus" {
name = "prometheus"
data = base64encode(local.prometheus_config)
}
# To get human-readable diff when prometheus_config changes
output "docker_config_prometheus" {
value = local.prometheus_config
}It might make sense to accept a data_text or data_raw input that terraform can render as part of standard operation.
resource "docker_config" "prometheus" {
name = "prometheus"
data_raw = local.prometheus_config
}Reactions are currently unavailable