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
Thanks for reporting this, and sorry you're having trouble with the issue. This was the confluence of a few mistakes on our part, and we're going to try and make these changes easier to find as we go forward. The private_key wasn't intended to take a path argument, which should have been pointed out better in the CHANGELOG, and also mention key_file to make the change easier to spot. This was is only documented fully in the connection docs.
To link everything together for completeness: private_key was added last year in the 0.6.x releases by #3846, which deprecated the key_file field. Unfortunately, even though the documentation stated that private_key should use the file function to get the key contents, it still accepted a path and read the file implicitly. A recent patch which broke the old behavior went unnoticed (#8577), until the 0.7.6 release. We remove the now broken and deprecated fields, and I added a backward incompatibility note about removing the removal. What I didn't realize was that the private_key field had this same undocumented behavior which was also now changed.
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.
ghost
locked and limited conversation to collaborators
Apr 21, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In terraform version 0.7.0 we could refer to private_key that is located in the working directory like:
private_key = "demo.pem"
In version 0.7.7 we need to change this to:
private_key = "${file("demo.pem")}"
I couldn't find this updated functionality in changelog since version 0.7.0.
I had to update all my connection blocks to make my repository https://github.com/mlushpenko/terraform-ansible work again. For instance, with version 0.7.0 this was working fine:
In version 0.7.7 this connection block has to be changed to:
The text was updated successfully, but these errors were encountered: