【发布时间】:2020-11-18 13:39:39
【问题描述】:
我正在尝试在本地 Windows 机器上使用 AWS CLI 验证 cloudformation 模板。 命令是:
aws cloudformation validate-template --template-body file:///C:/AWS/template.json
但我得到以下错误:
Error parsing parameter '--template-body': Unable to load param file file:///C:/AWS/template.json: [Errno 2] No such file or directory: 'file:///C:/AWS/template.json'
【问题讨论】:
-
命令中文件名为test.json
-
你能去
/C:/AWS/并从那里运行命令吗?aws cloudformation validate-template --template-body file://template.json -
还有为什么一个文件是
test.json而另一个是template.json? -
是的,我也试过了,但是没有用。
-
您显示的命令使用
file:///C:/AWS/template.json,但错误是关于'home/AWS/test.json?这些文件有什么不同?
标签: validation templates amazon-cloudformation local