我正在运行以下命令,想知道如何指定--template-body
的值。
aws cloudformation validate-template --template-body file://my-template.yml
我知道http://
和file://
但还有其他人吗?某处有这些列表吗?
谢谢
AWSCLI 支持file:
、http:
、https:
协议。 这在 AWSCLI 文档的这一部分中进行了讨论。
更新
如有疑问,请检查代码。 以下是支持的前缀:
PREFIX_MAP = {
'file://': (get_file, {'mode': 'r'}),
'fileb://': (get_file, {'mode': 'rb'}),
'http://': (get_uri, {}),
'https://': (get_uri, {}),
}