How to run Windows instance on EC2 from Jenkins?
<p>I have configured my Jenkins to execute a Linux instance on AWS EC2. This works absolutely fine and I am able to invoke Linux instances on EC2 via Jenkins. (Installed a couple of plugins; settings; creating custom Linux AMI etc.).</p>

<p>I want to run a Windows instance on EC2 via Jenkins. I have already setup a custom Windows AMI with Java installed and Winrm configured; a security group that allows TCP on port 445 and 5985; for SMB and Winrm respectively (<a href="https://issues.jenkins-ci.org/browse/JENKINS-4995" rel="noreferrer">https://issues.jenkins-ci.org/browse/JENKINS-4995</a>).</p>

<p>I am able to invoke this Windows instance from Jenkins, but it never connects(just continues the loop "Connecting to ec2-54-191-40-110.us-west-2.compute.amazonaws.com(54.191.40.110) with WinRM as. Waiting for WinRM to come up. Sleeping 10s."</p>

<p>Please help me with the same.</p>