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

Multiple Elastic IP for EC2

For a single EC2 instance, I have added 2IP Address Primary and one secondary. Later i cant remove one.. Is there any way that we can remove one IP Adresss
1
vote
1 answer

How to create a database read replica on AWS Lightsail

I have an existing MySQL database running on AWS Lightsail, I want to create a read replica for that one, how can I do it?
1
vote
1 answer

AWS Lambda boto3 : Instance launch from lambda boto3 python but not launching

while trying launch instance from python function instance not launching but not getting python syntax error. region = 'us-east-2' ec2 = boto3.client('ec2') ec2 = boto3.resource('ec2') client = boto3.client('ec2') def lambda_handler(event,…
1
vote
0 answers

Docker based Elastic Beanstalk timeout error connecting to RDS

Hope everyone is doing amazingly great just like me until last day. Case Story: 1 I have a laravel(php) based admin panel. 2 I ran and tested it locally by connecting it to a mysql database. 3 I created a docker file and test all things on dockers…
1
vote
1 answer

ElasticBeanStalk instance fails unrecoverably after adding .config file in .ebextensions

The deployment of an EBS instance fails after trying to add a .config file inside .ebextensions directory. The file is named 01commands.config and has the following content: container_commands: collectstatic: command: "echo Test!" …
bjassael
  • 11
  • 1
1
vote
2 answers

Get EC2 OS programmatically

I need to get this info ("Amazon Linux" line) via aws-cli or aws-sdk. I've tried: aws ec2 describe-images --image-id ami-0b898040803850657 --region us-east-1 --output json But it doesn't give this kind of info in a straightforward way: { …
grabantot
  • 133
  • 6
1
vote
1 answer

How do I rename a default AWS RDS option group?

I'm trying to bring our AWS account under terraform but it's throwing an error the that RDS Option group name isn't supported it has a colon in it. How do I rename it either via the GUI or CLI so it can then be managed by terraform?
digital
  • 345
  • 6
  • 13
1
vote
3 answers

AWS CLI create bucket inside another bucket

How can I create a bucket inside a bucket using the aws cli? When I use the "mb" command it states that I already own it (but I don't). The top level bucket "example-bucket" already exists. I need to know how to create the "testing" bucket using the…
Jeight
  • 198
  • 1
  • 6
1
vote
1 answer

Unable to get userName because I did not specify userName?

I am trying to run this command $ aws iam get-user --query 'User.UserName' --output text and it failed with An error occurred (ValidationError) when calling the GetUser operation: Must specify userName when calling with non-User credentials I…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
1
vote
1 answer

Aws cli: The filter condition returns all the running instance instead of those with a particular tag

I want to able find out the ec2 machines that are running and tagged with a particular value. I used the following command: aws ec2 describe-instances --filter Name=tag:Name,Values=worker1 \ --filter Name=instance-state-name,Values=running It…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
1
vote
1 answer

Docker labels for ECS containers

I'm new to using labels with Docker containers, but I noticed that the labels I add to my images during build are ignored by ECS when I deploy a task definition. I can see that I can add the labels to the container as part of the task definition,…
mhvelplund
  • 97
  • 2
  • 12
1
vote
2 answers

aws s3 sync - skip "system" folders on windows

I'm attempting to use aws s3 sync to push a bunch of backup files from my Windows server to an s3 bucket. The problem that I'm running into is that it appears to be picking up the Recycle Bin and System Volume Information. Unfortunately, it's unable…
Ben Thul
  • 3,024
  • 17
  • 24
1
vote
1 answer

AWS: How to download a file using eb ssh cli?

Because of some security restrictions in our AWS environment I can not use SCP (for whatever reason) therefore I was using SSH to download some certain text files containing logs - the command was like this: ssh -i '/home/user/.ssh/website-key.pem'…
1
vote
0 answers

Getting error asking for unknow parameter while importing ova image to aws following official ducumentation

Getting error asking for unknow parameter while importing ova image to aws following official ducumentation. I need deploy my current basic Debian box fully baked to AWS with all configurations and softwares thats is already running here on my…
Mark
  • 11
  • 2
1
vote
1 answer

How to setup python3, numpy, nltk in my elastic-beanstalk?

I have deployed my project in elastic-beanstack, I need to setup python3, numpy and nltk environment to it. We have a python code with python3, numpy and nltk, We are interacting to python code with nodejs Child process. In my local machine it works…