-
Notifications
You must be signed in to change notification settings - Fork 75
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
sensitive_config_vars changes should show which config vars are changing #253
Comments
This is likely a limitation by the terraform SDK when setting an attribute on a resource with If you have noticed a different behavior in another provider, let us know. |
Agreed.
Not sure if this If not possible to get a decent diff as a nested / sub resource / attribute as block (whatever the correct terminology), then I'd prefer each config var be its own resource (sensitive or regular). Kinda verbose for code, but at least then it'd be less surprising behavior than the current |
That said if you wish to achieve 'each config var be its own resource', you can do this via the |
While having the values of
sensitive_config_vars
not show in plan output is good, not showing which keys are changing makes it difficult to refactor and reason about changes.I realized that
config_vars
andsensitive_config
vars are just managed as a map data type, so this probably isn't doable without changing them to be their own resources, but I think changing this might also help with other issues like https://github.com/terraform-providers/terraform-provider-heroku/issues/247Terraform and Provider Version
Affected Resource(s)
heroku_app
Terraform Configuration Files
Expected Behavior
If I change a sensitive config var I would expect the output to show which changed, but not the value changing.
So if I change my initial terraform code
I would expect output to be something like
Actual Behavior
When I change config vars I can't tell which sensitive_config var changes
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
sensitive_config_vars
terraform plan
The text was updated successfully, but these errors were encountered: