AWS CLI 支持哪些文件协议?

What protocols are supported by the AWS CLI for files?

我是 运行 以下命令,想知道如何指定 --template-body 的值。

aws cloudformation validate-template --template-body file://my-template.yml

我知道 http://file:// 但还有其他的吗?某处有这些列表吗?

谢谢,

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, {}), }