AWS CLI支持哪些协议用于文件?

时间:2017-01-10 08:05:27

标签: amazon-web-services protocols aws-cli

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

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

我知道http://file://但还有其他人吗?这些地方有这样的清单吗?

谢谢,

1 个答案:

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

相关问题