在线搜索但没有找到与此相关的任何内容.
有谁知道在Unix中是否有任何方法可以安装特定版本的AWS CLI?即使使用AWS文档,我也没有找到可配置的东西.
我目前正在尝试将Django 1.7,Python 3.4 WebApp部署到AWS Elastic Beanstalk.我正在关注AWS站点上的指南,但是当我尝试在.ebextensions目录中使用它们的配置文件时,"option_name:WSGIPath"行似乎给出了错误"错误:未知或重复参数:WSGIPath"
我正在使用以下aws cli命令.我一次又一次地查看它,无法弄清楚命令有什么问题.
aws s3api put-bucket-tagging --bucket s3://****edited**** --tagging TagSet=[{Key=Name,Value=FHWA_Packaging_Logs},{Key=Project,Value=FHWA_Processing},{Key=Team,Value=Production}]
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Unknown options: TagSet=[Key=Name,Value=FHWA_Processing,Key=Team], TagSet=[Key=Name,Value=FHWA_Processing,Value=Production], TagSet=[Value=FHWA_Packaging_Logs,Key=Project,Key=Team], TagSet=[Value=FHWA_Packaging_Logs,Key=Project,Value=Production], TagSet=[Value=FHWA_Packaging_Logs,Value=FHWA_Processing,Key=Team], TagSet=[Value=FHWA_Packaging_Logs,Value=FHWA_Processing,Value=Production], TagSet=[Key=Name,Key=Project,Value=Production]
Run Code Online (Sandbox Code Playgroud)
命令有什么问题?
我正在一个项目中,其中一项任务是为远程VPC中的实例提供AWS ELB服务。AWS ELB位于VPC A中,实例位于VPC B中。我的最初回答是:否,因为ELB是负载均衡器,而不是路由器。文档和与AWS ELB的配合使用表明,不支持或无法配置远程VPC中子网/实例的负载平衡。
我正在检查是否有人尝试过此方案以取得任何成功。
非常感谢您的任何回应或反馈。
amazon-ec2 amazon-web-services amazon-elb amazon-vpc aws-cli
从Glacier获取对象非常耗时,因此我决定改用S3 IA存储类。我需要列出存储桶中所有具有Glacier存储类的对象(我通过LifeCycle策略配置了它)并将其更改为S3 IA。
是否有任何脚本或工具?
执行查询:
aws ec2 run-instances --image-id ami-7a85a01a --security-group-ids sg-756ae512 --count 1 --instance-type t2.micro --tag-specifications ResourceType=instance,Tags=[{Key=webserver,Value=production}] --subnet-id subnet-cc0b0e8a
它抛出一个错误说:
Unknown options: --tag-specifications, ResourceType=instance,Tags=[{Key=webserver,Value=production}]
有人知道它是否被描述过,或者语法是否与预期不同?我一直在与这个圈子。
使用新语法的可能解决方案:
aws ec2 run-instances --image-id ami-xxxxxxxxxx --security-group-ids sg-ef95c791 --count 1 --instance-type m4.2xlarge --key-name mypemkey --query Reservations[*].Instances[*].[PublicIpAddress,InstanceId]
Run Code Online (Sandbox Code Playgroud)
我能想到的最好的似乎正在起作用:
aws ec2 run-instances --image-id ami-7a85a01a --count 1 --instance-type t2.micro --key-name mykeypair --subnet-id sn-756ae512 --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=production}]' --associate-public-ip-address --output=text
我是aws的新手,我正在尝试使用aws-cli连接aws,因为我很容易使用命令行,并希望用来编写脚本来自动化该过程.
但是我收到如下错误:
_
attempt_number, caught_exception)
File "/usr/local/lib/python2.7/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
EndpointConnectionError: Could not connect to the endpoint URL: "https://ec2.ap-southeast-1a.amazonaws.com/"
2017-07-08 20:30:52,763 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255
Could not connect to the endpoint URL: "https://ec2.ap-southeast-1a.amazonaws.com/"
Run Code Online (Sandbox Code Playgroud)
我已经在配置文件中设置了配置文件用户.
[profile joey2]
output = json
region = ap-southeast-1a
Run Code Online (Sandbox Code Playgroud)
正确配置了api密钥和密钥等凭证.
有人可以帮助弄清楚这个问题的原因.非常感谢任何建议?
我正在使用创建RDS
创建-DB实例
如何将其分配给VPC组?我没有看到任何标签来实现这一点.它正在选择默认VPC组并分配给RDS.
这是我用来创建RDS的脚本(我在bash脚本中定义的标签中传递变量).>>
aws rds create-db-instance \
--db-name WIND \
--vpc-security-group-ids $sgGroup_id \
--db-instance-identifier $Instance_Identifier \
--allocated-storage 100 \
--copy-tags-to-snapshot \
--db-instance-class ${arrDbClass[$iDbClass]} \
--engine oracle-ee \
--engine-version ${arrEngVer[$iEngVer]} \
--license-model bring-your-own-license \
--master-username oraadmin \
--master-user-password $oraadminPassword \
--no-auto-minor-version-upgrade \
--no-publicly-accessible \
--backup-retention-period $backup_Retention_Period \
--no-storage-encrypted \
--storage-type gp2 \
--no-enable-iam-database-authentication \
$multi_Az \
Run Code Online (Sandbox Code Playgroud) 我一直在尝试使用以下json(testbootstraptable.json)文件创建dynamo数据库表:
{
"AttributeDefinitions": [
{
"AttributeName": "test1",
"AttributeType": "S"
},
{
"AttributeName": "test2",
"AttributeType": "S"
}
],
"TableName": "BOOTSTRAP_TEST_TBL",
"KeySchema": [
{
"AttributeName": "test1",
"KeyType": "HASH"
},
{
"AttributeName": "test2",
"KeyType": "RANGE"
}
],
"ProvisionedThroughput": {
"NumberOfDecreasesToday": 0,
"ReadCapacityUnits": 35,
"WriteCapacityUnits": 35
}
}
Run Code Online (Sandbox Code Playgroud)
我已经尝试过多次基于Google搜索的不同变体形式,但始终出现以下错误:
Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 1 column 1 (char 0)
JSON received: testbootstraptable.json
Run Code Online (Sandbox Code Playgroud)
AWS命令:
$ aws dynamodb create-table --cli-input-json testbootstraptable.json --region us-west-2
Run Code Online (Sandbox Code Playgroud) 我正在使用“ MacOS High Sierra”。
我很早以前安装了aws cli工具,不记得我是如何安装它的。
安装有点不寻常。
我可以aws从任何文件夹运行,这可以正常工作
$ aws --version
aws-cli/1.11.121 Python/2.7.13 Darwin/17.4.0 botocore/1.7.12
Run Code Online (Sandbox Code Playgroud)
但是跑步
$ which aws
Run Code Online (Sandbox Code Playgroud)
这什么也不会返回。我以为可能是别名,但是正在运行
$ alias | grep aws
Run Code Online (Sandbox Code Playgroud)
这也不会返回任何内容。它也没有安装自制软件
$ brew list | grep aws
Run Code Online (Sandbox Code Playgroud)
之所以会出现问题,是因为现在我已经运行了一些cli程序(包括“ AWS Sam”和我工作中的构建脚本),它们抱怨aws着没有进入路径。
我宁愿对awscli 进行“常规安装”,在这里我将可执行文件放在某个bin文件夹中,然后将其放在环境路径中。
但是相反,它使用了一些我不熟悉的“魔术”。而且甚至AWS都不拥有工具(“ AWS Sam”)似乎喜欢其安装方式。
任何意见,将不胜感激。
aws-cli ×10
amazon-ec2 ×2
amazon-s3 ×2
unix ×2
amazon-elb ×1
amazon-rds ×1
amazon-vpc ×1
deployment ×1
django ×1
macos ×1
python-3.x ×1