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
2
votes
0 answers

AWS Elastic IPV6

I posted a question some time ago about an AWS Elastic ipv6 (AWS CLI Elastic IP, IPv6) Basically i need to be able to change the ipv6 from one instance to another like an elastic ip. (Instances in High Availability) The answer that i accepted was to…
2
votes
0 answers

Can't connect to a ec2 windows instance after I have enabled Enhanced Networking with ENA

My problem started when I couldn't change an EC2 instance type from a c4.large to a c5.large because I get an error message saying that I have first to enable Enhanced Networking, then I googled how to enabled it and I found the following article:…
VaTo
  • 221
  • 6
  • 22
2
votes
1 answer

What are the environment tier options in aws elasticbeanstalk cli?

This has been driving me nuts. Can anyone point me to the docs section that has this information? The cli-input json to aws elasticbeanstalk create-environment command { "ApplicationName": "MyApp", "EnvironmentName": "MyAppEnv01", …
AlexanderF
  • 211
  • 1
  • 9
2
votes
2 answers

aws instance docker pull extract is very slow

I am pulling a ~3GB image from a private docker registry and it takes roughly 10 minutes. About 80% of the time is spent for extracting the layers, so download/network does not seem to be a bottleneck. It is executed in an aws environment. Both…
2
votes
1 answer

"unknown shorthand flag: 'e' in -e" from 'aws ecr get-login'

I am trying to push a docker image to the aws ecr When i try to login to ect, aws ecr get-login It expands to something like this docker login -u AWS -p eyJwYXlsbXXXXXXVZIn0= -e none https://88888888888.dkr.ecr.us-west-2.amazonaws.com I got…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
2
votes
1 answer

aws cli -- list private subnets

Is there a way to list or identify which subnets are public vs private using the aws cli? aws ec2 describe-subnets lists everything, but I'm not seeing any obvious identifiers for which ones might be public or private. Then I grabbed aws ec2…
Neybar
  • 123
  • 1
  • 4
2
votes
0 answers

Beanstalk - eb branch command not found

I'm new to AWS and I'm trying to get a Node.js app running using Beanstalk. The app is running now and I would like to deploy code from a prod git branch. I followed this tutorial:…
nicondev
  • 131
  • 3
2
votes
1 answer

How to you get an AWS client-token to use with `aws ec2 run-instances`?

As described here https://aws.amazon.com/blogs/aws/new-amazon-ec2-feature-idempotent-instance-creation/ AWS CLI enforces idempotency of the aws ec2 run-instances --cli-input-json command. Unfortunately there is no documentation on how a client-token…
Bruno Bronosky
  • 4,529
  • 3
  • 26
  • 34
2
votes
2 answers

How do I use the AWS CLI to find the uptime of servers?

I've reviewed reference documentation for the AWS CLI. I know how to use the aws ec2 describe-instances command. Is there a variation to list the uptime (not the creation time) of the servers? The OS uptime is useful. It seems like this could be…
2
votes
0 answers

EC2 Ubuntu userdata not working

I have tried booting several times an ec2 t2.nano with custom userdata, but I can't get it working, the logs say: /var/log/cloud-init.log helpers.py[DEBUG]: Running config-rightscale_userdata using lock (
Lucas Pelegrino
  • 202
  • 1
  • 4
  • 10
2
votes
2 answers

How to automatically update EC2 Linux instances without downtime by switching between two instances?

In short - OS Amazon Linux or Ubuntu. One EC2 instance (or OpsWorks instance?) is running. Once a day start second instance, update it with latest security updates, install my app. Shutdown first instance. Repeat every day... AWS documentation…
Maris B.
  • 182
  • 3
  • 12
2
votes
1 answer

Get Ids of terminated EC2 instances

I'm trying to create a report about our EC2 instances usage and utilization over time. I would like to examine all of the instance that have or had been running in my environment for the past X days. As part of the report I would like to include…
Avi
  • 123
  • 1
  • 4
2
votes
1 answer

Difference between "ingestionTime" and "timestamp" in AWS VPC flow logs?

I can see both "ingestionTime" and "timestamp" in my AWS VPC flow logs. The timestamp seems to change more frequently than the ingestionTime, but neither seems to tell me very much. The docs here don't say much either. I would post an image, but…
makansij
  • 265
  • 1
  • 5
  • 12
2
votes
1 answer

Using SaltStack to create VPC on AWS

I am not sure if this is even possible as I have not found any documentation or information otherwise regarding how to do this: can SaltStack be used to configure and create new VPCs into a given region on AWS? If so can someone please point me in…
Brandon K
  • 121
  • 2
2
votes
1 answer

AWS RDS CLI: AccessDenied on CreateDBSnapshot

I want to use the AWS RDS command line tool to create a snapshot of my database my-database using create-db-snapshot. I have created a special backup role in IAM with a policy that allows me to describe, copy and create snapshots. It looks like this…