aws-cli

AWS Elastic Beanstalk : the command eb list shows no environments

╄→尐↘猪︶ㄣ 提交于 2020-08-27 21:21:53
问题 I am using Elastic Beanstalk and I have created 3 different environments. I used awsebcli. All of a sudden the command eb list doesn't show me my enviroments because of which I am unable to deploy the environment. The error I am getting is ERROR: This branch does not have a default environment. You must either specify an environment by typing "eb status my-env-name" or set a default environment by typing "eb use my-env-name". I tried eb status 'my-env-name' , again I got an error : ERROR: The

Saving a url to AWS parameter store with aws-cli

六眼飞鱼酱① 提交于 2020-08-27 06:01:33
问题 Alright, so I'm trying to programmatically store my Serverless generated API endpoint in parameter store for another project to ingest. Just for an example, I'm going to try to store google.com. aws ssm put-parameter --name /dev/someStore --value https://google.com --type String This fails, understandably so. Error parsing parameter '--value': Unable to retrieve https://google.com: received non 200 status code of 301 However, if I wrap the URL in quotes... aws ssm put-parameter --name /dev

Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY

青春壹個敷衍的年華 提交于 2020-08-24 05:43:26
问题 Just configured the AWS CLI on my computer with my AWS Access and Secret Key. When I try to use the AWS CLI though it gives me this error. Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY I went to ~/.aws/config, and sure enough those credentials are there, including the AWS Secret Key, so I'm not sure why its squawking at me. 回答1: You should have this file ~/.aws/credentials and the contents should be in the following format: [default] aws_access_key_id = XXXXXXXXXXXXXXXXXX

Querying multiple values

China☆狼群 提交于 2020-07-30 05:56:08
问题 I'm trying to filter by multiple values however I can't seem to get an and clause to work (e.g. filter1 and filter 2 ... etc.): Show me snapshots where the database name is 'testing' aws rds describe-db-snapshots --include-shared --query 'DBSnapshots[?DBInstanceIdentifier==`testing`].{DBNAME:DBInstanceIdentifier,SNAPSHOT:DBSnapshotIdentifier}' [ { "SNAPSHOT": "test1", "DBNAME": "testing" }, { "SNAPSHOT": "test2", "DBNAME": "testing" }, { "SNAPSHOT": "test3", "DBNAME": "testing" }, { "SNAPSHOT