Questions tagged [aws-cli]

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services.

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services. Multiple AWS services can be controlled via the command line and various actions can be automated through this tool.

Questions involving an alternate implementation for Windows PowerShell, AWS Tools for PowerShell, should be tagged with instead.

Resources

3275 questions
1
vote
1 answer

Finding public IP addresses of all EC2 instances in a ECS cluster

I try to find public IP addresses of all EC2 instances within a ECS cluster. I can see EC2 instances id's with command: aws ecs list-container-instances --cluster myCluster But this won't show IP addresses. I searched ECS CLI documentation but I…
JavaRed
  • 638
  • 3
  • 10
  • 29
1
vote
2 answers

How to setup awscli without setting up access key & secret access key?

I tried to find set aws-cli locally using IAM role & without using access key/secret access key. But unable to get information from meta url[http://169.256.169.256/latest/meta-data]. I am running Ec2 instance with Ubuntu Server 16.04 LTS (HVM), SSD…
prajitgandhi
  • 413
  • 4
  • 19
1
vote
1 answer

How to output multiple elements via AWS query?

I trying to output in a column format three keys from 'rds'. If I start with this statement: aws rds describe-db-instances --region us-east-1 --query 'DBInstances[*].[DBInstanceIdentifier, PubliclyAccessible, VpcSecurityGroupId]' --output text ...I…
1
vote
1 answer

aws cli- terminate spot instance every 15 minutes

I have 6 spot instances for a project. I only need them up for 15 mins then I need to terminate them to spin then up again. My idea is as follow. Install aws cli within the AMI. Then create a cron job to terminate ec2 spot instance Current : aws ec2…
Benjamin Jones
  • 939
  • 4
  • 20
  • 46
1
vote
1 answer

Cant install Python3 on Linux

For AWS CLI i need to install Python on my Linux Server. After i do the following: wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz tar xf Python-3.6.4.tgz cd Python-3.6.4 ./configure I get a lot of the same errors ./configure.lineo:…
sHamann
  • 567
  • 2
  • 6
  • 29
1
vote
0 answers

aws s3 commands in shell script and calling from php

I am having challenge with aws s3 commands using PHP. Here is the my requirements. Write a shell script to download few files s3 bucket to local system using aws s3 cp. Shell Script (1.sh) #!/bin/bash aws s3 cp s3://bucket1/1.mp4 /tmp/1.mp4 When…
1
vote
3 answers

How to sort elements in an array or just print them sorted?

I wrote the following Groovy code which returns an array of CIDR blocks in use throughout all 3 AWS regions we use, the results are populated to a Jenkins extended parameter: def regions = ['us-west-2', 'us-east-1', 'eu-west-1'] def output =…
Itai Ganot
  • 4,290
  • 10
  • 47
  • 83
1
vote
0 answers

What do I need to change in order to use the AWS CLI?

I'm trying to use the CLI and Python's package Boto3 to access AWS, but am getting access denied to every service. I can login to the console and see everything and do everything that I'm attempting through the CLI. I'm attached to an IAM group that…
simplycoding
  • 2,256
  • 8
  • 34
  • 70
1
vote
2 answers

Backing up symlinks using AWS s3 sync

I'm attempting to backup our system using the aws s3 sync command, however this will either backup the entire directory behind a symlink (default behaviour), or not backup the symlink at all. I'd like some way of backing up the symlink so it can be…
1
vote
1 answer

AWS CLI updating path fails

I'm trying to update a base path mapping from EDGE to REGIONAL with aws apigateway update-domain-name --region eu-west-2 --domain-name example.com --patch-operations op=replace,path=/endpointConfiguration/types/EDGE,value=REGIONAL However I get An…
Jonathan
  • 8,558
  • 3
  • 46
  • 70
1
vote
1 answer

Where to find Endpoint in creating aws-cli bots without using amazon-lex?

I'm trying to create a chatbot using aws-cli .Going through the Steps in Documentation in https://docs.aws.amazon.com/lex/latest/dg/gs-create-flower-types.html I couldn't understand what endpoint did it mean in the documentation as shown in the…
1
vote
1 answer

Running Java Spark program on AWS EMR

I'm having problem running Java written spark application on AWS EMR. Locally, everything runs fine. When I submit a job to EMR, I always get "Completed" withing 20 seconds even though job should take minutes. There is no output being produced, no…
Dusan Vasiljevic
  • 662
  • 6
  • 18
1
vote
1 answer

Obtain aws cli command to create RDS instance from existing database

Is there a way to automatically generate the database creation string for an empty database with settings from an existing database? I created an AWS RDS postgresql database instance using the console in my browser. I selected all kind of setting…
Rutger Hofste
  • 3,105
  • 2
  • 22
  • 34
1
vote
1 answer

No Payload property on AWS Lambda invoke CLI response

I'm making a call to the AWS Lambda CLI to invoke my function. I want to get the function response (Payload) as part of my return object so I'm passing --invocation-type RequestResponse. With that, I'm still only getting the function output in my…
Brady Dowling
  • 3,296
  • 2
  • 22
  • 43
1
vote
1 answer

AWS SQS send message with KMS ID on cli

I have an SQS Queue encrypted with a KMS Customer Master Key (CMK) I can't get the --message-attributes syntax right to add the KMS key id when using the send-message cli command aws sqs send-message --queue-url "queue/url" --message-body "testing"…
maafk
  • 3,797
  • 2
  • 20
  • 40
1 2 3
99
100