1 個回答
- 最新
- 最多得票
- 最多評論
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
已回答 2 年前
相關內容
- 已提問 2 年前
- 已提問 8 個月前
