Open mark-at-nuna opened 3 years ago
Same issue here! I'm storing the keys in an array and I have a foreach loop, and every time I do a "plan" command, it marks the keys as changed although it's the same.
Thanks @mark-at-nuna for the oneliner tip, I'll use that instead until this can be further investigated 👍
One other thing you can try is to use chomp
to remove any trailing / leading newlines from the strings.
Terraform Version
0.15.4 with Vault provider 2.20.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I expected that, after applying this configuration,
terraform plan
would have nothing to do.Actual Behavior
I can't see the difference there.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
Important Factoids
Changing the configuration to define the public key all on line makes it work perfectly:
That makes me think that it's a whitespace issue caused by the multiline string I used above.