Terraform - Copy Files to an existing Azure VM from Local

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

This question has a Ref. to Connection timeout during file provision to azurerm vm . I don't want to create a new VM, which already exists. I have WinRM activated in my VM for http and I could able to connect to VM through Powershell using http. But terraform not able to copy the file using below .tf with provisioner

resource "null_resource" "test"
{ 
provisioner "file" 
{
   source = "D:/JAISH/TERRAFORM/output.txt"
    destination = "D:/jaish/output.txt"
        connection 
        {
            type = "winrm"
            user = "uid"
            password = "pwd"
            host="IP"
            port="5985"
            timeout = "20m"
        }


}
}

It's always showing like below without any status change.

null_resource.test: Still creating... (18m21s elapsed)
null_resource.test: Still creating... (18m31s elapsed)
null_resource.test: Still creating... (18m41s elapsed)
null_resource.test: Still creating... (18m51s elapsed)
null_resource.test: Still creating... (19m1s elapsed)
null_resource.test: Still creating... (19m11s elapsed)
null_resource.test: Still creating... (19m21s elapsed)

Not sure what's wrong here.

asked 1 min ago
Jaish Mathews

نویسنده : استخدام کار بازدید : 6 تاريخ : پنجشنبه 30 فروردين 1397 ساعت: 15:58

فهرست وبلاگ