Questions tagged [aws-cli]

aws-cli is the Amazon Web Services Command Line Interface

aws-cli is an open source project that provides a command line interface to the Amazon Web Services APIs.

The project is hosted on GitHub: https://github.com/aws/aws-cli

380 questions
1
vote
1 answer

Why does a custom CodeBuild image require aws configure, but not a managed one?

I have an AWS CodePipeline with the build step using CodeBuild. I was previously using a managed image for this build job and I was able to use the follow command without issue: aws ecr get-login --no-include-email --region us-east-1 Now I've…
1
vote
3 answers

How to automatically archive AWS S3 whole buckets to S3 Glacier?

I'm required to archive around 200 AWS S3 buckets to S3 Glacier and I would like to do it automatically but I can't find how it can be done with aws-cli. The only method I found, is through AWS UI... to go to each bucket manually and within it, to…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
1
vote
1 answer

Spawn new Aws::AutoScalingGroup instances before old are destroyed. (503 error occuring)

TL;DR: See edit at bottom. I am attempting set up continuous deployments for our new environment we are migrating to at my company. I am using an aws cloudformation stack to contain all of my infrastructure. When I create the stack, my instances…
1
vote
1 answer

How can I use two AWS access keys on the same computer?

I'm trying to use two different AWS accounts on my computer. One is for my work and the other one is for my personal project. I made a new Elastic Beanstalk application with eb-cli commands to create a new application for my personal project. When I…
Jay
  • 189
  • 1
  • 2
  • 8
1
vote
2 answers

Federated SSO to AWS using CLI

We have successfully setup an external idP using google and connected it to AWS. Our users now have Federated SSO with AWS and can easily log into the web console with SAML 2.0 federation Role we created. This role also allows programmatic access…
1
vote
1 answer

How to obtain ec2 AMI pricing info. using CLI/URL

I am struggling to understand how to obtain pricing info. programmatically (that is, via URL or aws CLI). I suspect I am missing the 'big picture'. I can estimate pricing manually on the web by, for example, aws marketplace -> operating systems ->…
copper.hat
  • 155
  • 1
  • 8
1
vote
1 answer

AWS IAM role RDS authentication failure

Trying to create a process for IAM role based authentication to my RDS instance per AWS wiki, but no matter what I seem to do I get a basic auth failure akin to a bad password, with no logging anywhere to give me more insights into the problem. My…
Ethan Shrago
  • 101
  • 1
  • 8
1
vote
0 answers

Django deployed on Elastic Beanstalk intermittently hangs on login

I have a demo django application that is on an Elastic Beanstalk instance that I am showing, and I've had weird intermittent behavior. Sometimes I get stuck at the login menu (the whole site requires authentication), wherein I am temporarily become…
1
vote
1 answer

Use environment variable credentials for source_profile with AWS CLI

I have 2 AWS accounts and have set up cross account authentication using IAM roles. I have created a AWS CLI named profile for the second account, which uses a role_arn and specifies my default profile as the source_profile. For my default profile,…
Garreth McDaid
  • 3,449
  • 1
  • 27
  • 42
1
vote
1 answer

AWS CLI - How do I list instances and dump two specific tags along with other items

The cli below works perfectly now I would also like to capture two other tags in addition to 'Name' called 'Application' and 'Environment'. How can I change this to add Application and Environment tags to the out-put. aws ec2 describe-instances…
Abi
  • 11
  • 1
  • 2
1
vote
2 answers

aws s3api listing not working

I am trying to list content by using aws s3api for listing bucket content. I aws s3api list-objects --bucket user_list_staging When I run it it gets stuck, does not return anything neither return prompt but when I do aws s3 ls…
Volatil3
  • 275
  • 1
  • 3
  • 11
1
vote
1 answer

AWS Cognito list-user is broken

AWS Cognito seems to be broken (20/2/2018). We had a user pool with users and the users list is now empty. I replicated the issue creating a new user pool, and adding a user, yet the user list is empty. Even the cli gives an empty list aws…
Efren
  • 153
  • 1
  • 11
1
vote
1 answer

How to copy more than 300GB files one AWS EC2 server to another EC2

I need to copy more than 300 GB files (most them are images) one EC2 instance to another EC2 instance, what will be the best method for doing this? EBS Snapshot will be not work in my situation because I will be need only one directory copy.
Mi2
  • 13
  • 4
1
vote
1 answer

Using elastic beanstalk CLI (eb cli) via bitbucket pipelines

I'm attempting to use bitbucket code pipelines to deploy to elastic beanstalk, using the eb cli. Here's my bitbucket-pipelines.yml file, I've based it on the amazonlinux image, as this is what's running on the VM's in production. image:…
1
vote
1 answer

AWS Cli doesn't include specific command switch even though the documentation shows that it should, any idea how to solve it?

AWS have announced 5 days ago that they now support VPC peering over different regions. Source: https://aws.amazon.com/about-aws/whats-new/2017/11/announcing-support-for-inter-region-vpc-peering/ In regard to the AWS Cli command which helps you…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146