wardviaene / terraform-course

Course files for my Udemy course about Terraform
https://www.udemy.com/learn-devops-infrastructure-automation-with-terraform/?couponCode=TERRAFORM_GIT
1.59k stars 4.04k forks source link

Question about 2B #2

Closed Martin-Andersen closed 7 years ago

Martin-Andersen commented 7 years ago

This is about lesson 2B

When I run "terraform apply" the instance are created and the powershell scripts runs without any errors. but the fileupload are failing:

provisioner "file" { source = "test.txt" destination = "C:/test.txt" }

But its not a timeout problem, have tried to increase timeout but it's not helping. Is there a way that I can debug the problem? is it better to use packer? In the end I am going to create a win server with sitecore on it.

All development are made on OS X or ubuntu

wardviaene commented 7 years ago

You need to make sure that you have a security group that allows access to port 5985, otherwise you'll indeed get a timeout. You might setup one manually just to test the demo, but it's better to add a security_group resource in for example securitygroups.tf. See other demos how you do that.

Also sorry for the late answer. If you're following the course on Udemy, use the Q&A section there to get a reply much sooner.

Martin-Andersen commented 7 years ago

Thanks that solved the problem