-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
digitalocean_ssh_key keeps being forced as a new resource #7889
Comments
I have experienced the same issue on 0.7.0 release. The cause is change in
I haven't found notes on this behavior in changelog. Is it intended change or bug? As a workaround you can replace call to |
I can't confirm the problem is exactly the behaviour of file (my knowledge of terraform internals are still very limited sadly) but I can confirm I'm seeing the very same problem. I'll try to dig into the code base to see if I can help (I'd love to, I love the project). Thank you for your hard work! |
Can you actually confirm that it was working in It seems that the digitalocean API strips the whitespace on the public key, and that the actual file does include the newline. I verified that I could make terraform My current workaround is to do
|
@tam7t It works fine with |
@tam7t I confirm it's working with 0.6.15 (don't worry about my container): (code from below is available at https://github.com/sjourdan/terraform_digitalocean_issue_7889/)
Now we can apply again and again:
The same with 0.7.0 keeps recreating the key:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
(Update: still on 0.7.0 final)
Terraform Version
Terraform v0.7.0-rc4 (abfd2c1daf914867b8737ac9419f3bd2ecc7a822)
Terraform v0.7.0
Affected Resource(s)
Terraform Configuration Files
The simplest
main.tf
:A simple
terraform.tfvars
:Debug Output
https://gist.github.com/sjourdan/5117947064fcfdb52560eba6164c594c
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform plan
or/andterraform apply
Important Factoids
This is obviously perfectly working in 0.6.x - we're talking 0.7.0 RC4 (0.7.0 final impacted too.)
References
The text was updated successfully, but these errors were encountered: