alphagov / cyber-security-windows-sandbox

Build a windows domain in AWS with terraform with a DC and WEC event forwarding.
MIT License
3 stars 0 forks source link

Fix user_data to install git before enabling WinRM #10

Closed danjoneslf closed 3 years ago

danjoneslf commented 3 years ago

The user_data and remote_exec currently get kicked off at the same time. The remote exec retries until WinRM is enabled.

Previously user_data was enabling WinRM before installing git and creating the profile to add it to the path.

In this PR I've also changed how the path is set to use a powershell profile.