在命令行中是否存在创建分发(理想情况下具有多个原点 - S3和AMS)的完整示例?我有点沮丧地发现它不是“aws cloudfront blah blah ......”
在Windows中,假设没有特殊工具 - 尽管任何需要独立exe的解决方案都可以。我被暗示使用cURL ...但是无法弄清楚我需要传递的所有东西,或者确实如何使用cURL这样做 - 发现它有一个-h param for headers ...但是从来没有使用cURL所以有点迷失。
看着http://docs.aws.amazon.com/AmazonCloudFront/latest/APIReference/CreateDistribution.html,但我对“例子”的粗略感到困惑,例如。
POST /2013-09-27/distribution HTTP/1.1
Host: cloudfront.amazonaws.com
Authorization: AWS authentication string
Date: Thu, 17 May 2012 19:37:58 GMT
Other required headers
...
我在哪里可以找到我的AWS身份验证字符串? 什么是“其他必需的标题” 我可以在网络上的Cloudfront管理页面上找到分发ID
我完全迷失了 - 需要真正的初学者指南,一步一步,理想地交叉引用网络上的Cloudfront管理页面。我通常是一个C#/ SQL桌面应用程序开发人员,所以这是出于舒适区域。
答案 0 :(得分:0)
答案 1 :(得分:0)
实际上, 可能是aws cloudfront blah blah
在最近版本的AWS CLI中键入aws cloudfront
时,会得到:
This service is only available as a preview service.
However, if you'd like to use a basic set of cloudfront commands with the
AWS CLI, you can enable this service by adding the following to your CLI
config file:
[preview]
cloudfront=true
遵循此建议,您将获得命令aws cloudfront create-distribution
。
我个人仍在努力为--distribution-config
答案 2 :(得分:0)
运行aws configure set preview.cloudfront true对我不起作用。在我的情况下(Linux),以下工作: 编辑文件〜/ .aws / config并添加内容
[preview]
cloudfront=true
到此为止。 topic有帮助,但未提及[方括号]。