我只是提出一个红移集群来开始开发工作,并且通常使用cron服务在工作时间之外关闭我的所有开发资源以节省资金.
当我浏览aws cli帮助时:
aws redshift help
Run Code Online (Sandbox Code Playgroud)
我没有看到任何停止或关闭我的测试集群的选项,就像我在控制台中一样.
如果没有办法做到这一点,有人知道他们为什么不提供这个功能吗?这些实例非常花钱,可以保持在线,我不想每天晚上都用手将它们关闭.
尝试使用OpenSSL通过AWSCLI安装多域ssl证书,它是Comodo PositiveSSL多域证书.
我按照aws教程和网络上的所有说明进行操作.我花了大约2个小时与Comodo技术支持,确保我有适当的文件等,重新颁发证书等,但仍然没有运气.
当我尝试使用此处显示的命令上传时,我一直收到此错误,此处没有太多关于此错误的信息.
A client error (SignatureDoesNotMatch) occurred when calling the UploadServerCertificate operation: Signature not yet current: 20150704T040234Z is still later than 20150704T032257Z (20150704T030757Z + 15 min.)
任何人都知道为什么会这样吗?
我对批处理文件非常陌生,但是我尝试使用一个文件来自动化一些AWS CLI实例创建。
到目前为止,我所拥有的非常简单-我的.bat文件中有一个命令可以运行以下run-instances命令:
aws ec2 run-instances --dry-run --image-id %ami_id% --key-name %keypair% --security-group-ids %security_group% --instance-type "r3.large" --subnet-id %az1b_subnet%
Run Code Online (Sandbox Code Playgroud)
该命令需要一点时间才能运行,但最终(没有--dry-run)将返回有关所创建实例的json。我想搜索该json输出并将其保存instance-id到变量中,以便可以使用它来通过ec2 create-tags命令标记新创建的实例。
关于我该怎么做的任何想法?我的第一次尝试是添加> test.txt到上述命令的末尾,然后搜索json并设置变量。但是,将test.txt在CLI命令完成并返回其输出之前立即创建。
谢谢。
我正在尝试使用aws cli启动EMR集群.有两种方法可以在aws cli中提供引导操作.
使用JSON,这是我目前正在使用的,但它变得非常混乱因为所有这些都是在bash脚本中并且很难格式化json
使用他们的列表命令
从他们的网站:
--bootstrap-actions (list)
Run Code Online (Sandbox Code Playgroud)
速记语法:
Path=string,Args=string,string,Name=string ...
Run Code Online (Sandbox Code Playgroud)
我能够以这种方式获得1个引导操作,但是当我尝试添加第二个时,它只执行我上次列出的任何内容
例如:
Path=string,Args=string,string,Name=string,Path=string2,Args=string2,Name=string2
Run Code Online (Sandbox Code Playgroud)
只执行string2.有谁知道这个的正确格式?
我想设置多个AWS配置文件,以便在项目之间跳转时可以轻松更改设置和凭据.
我已经阅读了AWS文档,但是关于如何选择登录时要使用的配置文件非常模糊.
当我尝试登录时,它只是给我这个错误,这似乎表明它没有拿起任何凭据.
An error occurred (UnrecognizedClientException) when calling the GetAuthorizationToken operation: The security token included in the request is invalid.
authentication command-line-interface amazon-web-services aws-cli amazon-ecr
我正在尝试从Windows 10中的AWS CLI调用lambda函数.我以前通过AWS configure完成了我的客户端配置.
使用的命令是:
aws lambda invoke \
--function-name arn:aws:lambda:us-east-1:111111111:function:xxx \
--invocation-type RequestResponse
Run Code Online (Sandbox Code Playgroud)
但我的系统返回错误aws: error: too few arguments,如下所示:
你们可以指导我在这次执行中取得成功吗?
谢谢
我在我的macbook上安装了aws cli.我上周更新了版本,从那时起它似乎忽略了AWS_PROFILE环境变量?有没有遇到过这个?我现在必须在每个语句中添加--profile,以使其朝向我更喜欢的配置文件.
有谁知道什么可能是错的或我应该如何解决它?
例如,尝试在Macbook上运行任何aws命令时,我遇到异常
命令
aws s3api create-bucket --bucket my_backup --region us-west-2 --create-
bucket-configuration LocationConstraint=us-west-1
Run Code Online (Sandbox Code Playgroud)
例外
Traceback (most recent call last):
File "/Users/avinash/.local/share/virtualenvs/pipend_shell_3-
x8skfE25/bin/aws", line 7, in <module>
from aws.main import main
File "/Users/avinash/.local/share/virtualenvs/pipend_shell_3-
x8skfE25/lib/python3.6/site-packages/aws/main.py", line 23
print '%(name)s: %(endpoint)s' % {
^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)
我正在使用python 3.6.5并安装了aws
pip install aws
Run Code Online (Sandbox Code Playgroud) 我正在使用aws-cli / 1.15.25 Python / 2.7.15 Darwin / 17.7.0 botocore / 1.10.25尝试使用以下命令将文件上传到S3:
aws s3 cp <file> s3://bucket.s3.amazonaws.com/<bucket name>
Run Code Online (Sandbox Code Playgroud)
但是我得到以下返回:
ü
pload failed: ./<file> to s3://bucket.s3.amazonaws.com/<bucket name> An error occurred (AllAccessDisabled) when calling the PutObject operation: All access to this object has been disabled
Run Code Online (Sandbox Code Playgroud)
作为测试,我使用以下策略将存储桶设置为所有人都可以访问:
{
"Version": "2012-10-17",
"Statement": [
{
"Principal": "*",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:PutObjectAcl",
"s3:GetObjectAcl"
],
"Resource": [
"arn:aws:s3:::<bucket name>/*"
]
}
]
}
Run Code Online (Sandbox Code Playgroud)
我的IAM用户具有正确的权限集
我不知道还要看什么。我已经Google搜索并尝试了大多数建议
好吧,所以我试图以编程方式将我的无服务器生成的API端点存储在参数存储中,以供另一个项目使用。
仅作为示例,我将尝试存储google.com。
aws ssm put-parameter --name /dev/someStore --value https://google.com --type String
这失败了,这是可以理解的。
Error parsing parameter '--value': Unable to retrieve https://google.com: received non 200 status code of 301
但是,如果我将网址用引号引起来...
aws ssm put-parameter --name /dev/someStore --value "https://google.com" --type String
它仍然失败,并显示相同的错误。有什么方法可以阻止cli尝试评估URL并仅保存该死的字符串吗?
aws-cli ×10
amazon-ecr ×1
amazon-emr ×1
amazon-iam ×1
amazon-s3 ×1
aws-lambda ×1
bash ×1
batch-file ×1
windows-7 ×1