我正在运行以下命令,并想知道如何指定--template-body
的值。
aws cloudformation validate-template --template-body file://my-template.yml
我知道http://
和file://
但还有其他人吗?这些地方有这样的清单吗?
谢谢,
答案 0 :(得分:3)
AWSCLI支持file:
,http:
,https:
协议。这在this section of the AWSCLI documentation中进行了讨论。
更新
如有疑问,请检查代码。以下是支持的前缀:
PREFIX_MAP = {
'file://': (get_file, {'mode': 'r'}),
'fileb://': (get_file, {'mode': 'rb'}),
'http://': (get_uri, {}),
'https://': (get_uri, {}),
}