1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
The provided PowerShell command works locally on a Windows machine, however the following needs to be remembered:
"Because paths on Windows use a backslash ('\') character, you must always remember to properly escape all backslashes by prepending another backslash whenever you refer to a Windows path in the AWS CloudFormation template." [1]
You will need to update your waitForBootstrap as follows:
waitForBootstrap:
1-deploy-wait-for-bootstrap:
command: powershell.exe -command "while(-Not (Test-Path C:\\bootstrap-complete.txt)) { Write-Host 'Waiting for file to be present'; Start-Sleep -Seconds 5 }"
[1] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-windows-stacks-bootstrapping.html
answered a year ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago