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
Hello, I am upgrading Terraform from version 1.0 to version (1.1.2 or 1.1.3) and when I run the CLI to create cluster it always gives an error when creating the instance, either with google cloud, azure, oracle, aws, ...
google....
connection {
type = "ssh"
port = "22"
timeout = "3m"
host = self.network_interface[0].access_config[0].nat_ip
user = var.ssh_username
private_key = var.keys.private
}
provisioner "file" {
...
}
Error: file provisioner error
│
│ with google_compute_instance.this,
│ on server.tf line 70, in resource "google_compute_instance" "this":
│ 70: provisioner "file" {
│
│ timeout - last error: dial tcp 34.145.0.52:22: i/o timeout
╵
{
....
}
this is the error in google
However, without modifying any value, just running it with Terraform 1.0 does not give an error and it is deployed without error.
azure.......
connection {
type = "ssh"
timeout = "3m"
host = self.public_ip_address
user = var.ssh_username
private_key = var.keys.private
}
provisioner "file" {
....
}
│ Error: file provisioner error
│
│ with azurerm_linux_virtual_machine.this,
│ on server.tf line 98, in resource "azurerm_linux_virtual_machine" "this":
│ 98: provisioner "file" {
│
│ Upload failed: scp: ~/.ssh: No such file or directory
╵
{
.....
}
same case that google, it working with Terraform 1.0 not with (1.1.2, 1.1.3)
in Oracle and AWS too
some help?
thanks
The text was updated successfully, but these errors were encountered:
It looks like you've encountered the same problem as previously discussed in #30243. This was the result of an intentional change to address a security-related concern, where the destination argument is no longer subject to shell expansion on the remote system.
The gist of it is to remove the ~/ from that path, so that the destination would be just.ssh, which should then be understood by the remote scp process as being relative to the target user's home directory.
I'm going to close this issue just because the other issue already covers the same problem. Thanks for reporting this!
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.
Hello, I am upgrading Terraform from version 1.0 to version (1.1.2 or 1.1.3) and when I run the CLI to create cluster it always gives an error when creating the instance, either with google cloud, azure, oracle, aws, ...
google....
connection {
type = "ssh"
port = "22"
timeout = "3m"
host = self.network_interface[0].access_config[0].nat_ip
user = var.ssh_username
private_key = var.keys.private
}
provisioner "file" {
...
}
Error: file provisioner error
│
│ with google_compute_instance.this,
│ on server.tf line 70, in resource "google_compute_instance" "this":
│ 70: provisioner "file" {
│
│ timeout - last error: dial tcp 34.145.0.52:22: i/o timeout
╵
{
....
}
this is the error in google
However, without modifying any value, just running it with Terraform 1.0 does not give an error and it is deployed without error.
azure.......
connection {
type = "ssh"
timeout = "3m"
host = self.public_ip_address
user = var.ssh_username
private_key = var.keys.private
}
provisioner "file" {
....
}
│ Error: file provisioner error
│
│ with azurerm_linux_virtual_machine.this,
│ on server.tf line 98, in resource "azurerm_linux_virtual_machine" "this":
│ 98: provisioner "file" {
│
│ Upload failed: scp: ~/.ssh: No such file or directory
╵
{
.....
}
same case that google, it working with Terraform 1.0 not with (1.1.2, 1.1.3)
in Oracle and AWS too
some help?
thanks
The text was updated successfully, but these errors were encountered: