You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setting={
namespace ="aws:elasticbeanstalk:healthreporting:system"
name ="ConfigDocument"
value =<<EOF{"Version":1,"CloudWatchMetrics":{"Instance":{"ApplicationRequestsTotal":60},"Environment":{"ApplicationRequests5xx":60,"ApplicationRequests4xx":60,"ApplicationRequests2xx":60}}}EOF }
terraform plan shouldn't expect a change with this config setting
Actual Behavior
Every time I run terraform plan, a change is expected, except when I copy and paste the output of the terraform plan and use it in the JSON keys in the exact same order without any whitespace.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
All this commit does is add a call to `normalizeJsonString`, so the
settings returned by the AWS API and the settings set by users in the tf
config don't indicate diffs in the tf state whenever there's extra
whitespace in the JSON. I added a case to the `structure_test.go` file, to
verify that `normalizeJsonString` treats regular strings the way I'd
expect.
I would have added an acceptance test, but the 15-20 minute feedback loop
is far too long to be practical. I tried figuring out a way to spoof the
flow instead, but had no luck.
This issue was originally opened by @artburkart as hashicorp/terraform#6289. It was migrated here as part of the provider split. The original body of the issue is below.
Hi there,
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Doesn't trigger change
Triggers change
Expected Behavior
terraform plan
shouldn't expect a change with this config settingActual Behavior
Every time I run
terraform plan
, a change is expected, except when I copy and paste the output of theterraform plan
and use it in the JSON keys in the exact same order without any whitespace.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
Important Factoids
Nothing special
References
Similar to 6257, but not the same.
The text was updated successfully, but these errors were encountered: