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

ECR Task definition: Container links should not have a cycle?

I'm using AWS-CLI to register an ECR task definition. My task definition is like follows: { "family": "", "taskRoleArn": "", "executionRoleArn": "", "networkMode": "none", "containerDefinitions": [ { "name": "", "image": "", …
Etherlind
  • 71
  • 7
1
vote
1 answer

Execute Lua code in the background Freeswitch

I'm writing some Lua code with Freeswitch and trying to execute some code while the main program continues execution. I've tried ... -- aws is AWS Command Line Interface io.popen("aws s3 cp " .. s3_src .. " ".. s3_dst) os.execute("aws s3 cp " .. …
devie
  • 191
  • 11
1
vote
1 answer

How to deploy .war from s3 to elasticbeanstalk using AWS CLI

I'm using aws cli (not eb cli). I have copied a .war to my s3 bucket: aws s3 cp app-${VERSION}.war s3://elasticbeanstalk-xxx/sub/app-${VERSION}.war Now I have for example: app-1.0.0.war on my S3. But now I'm stuck. I have an elastic beanstalk…
DenCowboy
  • 10,114
  • 24
  • 80
  • 168
1
vote
1 answer

How automate RDS Snapshot copy from ireland to N.virginia and start the RDS with updated root password

Please help me on this. I need a python or shell script for copy rds snapshot from ireland to N.virginia and restore the RDS instance in N.virginia with modified root password.
1
vote
2 answers

you must enable mobile hub service before using awsmobile hub cli

I am creating sample Ionic AWS Starter from in AWS Linux AMI server from this link. I have installed Ionic, cordova, and created project. when I am giving Creating AWS Mobile Hub Project. It was showing below error. Please help me fix below…
1
vote
2 answers

Can I trust aws-cli to re-upload my data without corrupting when the transfer fails?

I extensively use S3 to store encrypted and compressed backups of my workstations. I use the aws cli to sync them to S3. Sometimes, the transfer might fail when in progress. I usually just retry it and let it finish. My question is: Does S3 has some…
FullOfCaffeine
  • 551
  • 1
  • 6
  • 20
1
vote
1 answer

Creating transparent Docker network breaks AWS CLI

I'm running Docker version 17.06.2-ee-6, build e75fdb8 on Amazon EC2, Windows Server 2016. The instance role has permissions to get files from one specific S3 bucket: { "Effect": "Allow", "Action": [ "s3:GetObject" ], …
Colm Prunty
  • 1,540
  • 1
  • 13
  • 28
1
vote
1 answer

AWS CLI create-template json parse error

Trying to create an AWS SES template for sending personalized emails, but the CLI is complaining that the JSON can't be parsed? I have verified the JSON and it is all good, not sure why it won't parse it?
Robert Benedetto
  • 1,308
  • 1
  • 14
  • 42
1
vote
1 answer

Is possible to use run_instances from instance template?

I'd like to use a launch template with instance specifics then use it with run_instances to dispatch a number of similar instances. I have my reasons not to use Autoscaling. I did the following ec2_client = boto3.client('ec2',aws_access_key_id =…
Sam Gomari
  • 593
  • 2
  • 11
  • 27
1
vote
1 answer

Execution failed due to configuration error: Malformed Lambda proxy response

for reference you can visit this aws issue i've created: https://github.com/aws/aws-cli/issues/3118 I use this AWS CLI commands below but it is inside to *.sh file no problem with the script it successfully run NOTE: i manually create…
XanderDwyl
  • 69
  • 1
  • 9
1
vote
1 answer

How to get max-instances for each instance-type by aws cli?

The max numbers of launching instances are described on EC2 Service Limits of AWS console, and you can see the value of max-instances for each instance type. On the other hand, by using aws ec2 describe-account-attributes, it's possible to get the…
otiai10
  • 3,149
  • 4
  • 32
  • 48
1
vote
1 answer

How to display the content of a DynamoDB table

My DynamoDB table has the following attritubes sales_id: hashkey created_date: rangekey sales_employee_id:IndexedHashKey I am trying to get all the data of the table Sales just as in MySQL select * from Sales How can I query DynamoDB. I am…
J123
  • 61
  • 1
  • 8
1
vote
1 answer

AWS sync parameters not specified when AWS-CLI is run as a subprocess in Python

I have an AWS S3 bucket filled with data parameterized by date. I'd like to extract that data one date at a time using the AWS CLI (reference), specifically the aws s3 sync command. The following command does what I expect it to do: aws s3 sync…
Aleksey Bilogur
  • 3,286
  • 2
  • 22
  • 43
1
vote
1 answer

AWS trouble in Bash Script

Consider the AWS CLI commands in a script file #!/bin/bash msgClr='\033[1;35m' errClr='\033[1;31m' cynClr='\033[1;36m' NC='\033[0m' #Read CLuster from command Args cluster="MyCluster" #Update Service echo -e "${msgClr}Initiate: ${NC}Updating…
user1872371
  • 139
  • 10
1
vote
0 answers

How to use the --profile option with "aws logs" command for the CloudWatch Logs Agent?

After installing the CloudWatchLogs Agent the command /var/awslogs/bin/aws logs push --config-file /var/awslogs/etc/awslogs.conf --additional-configs-dir /var/awslogs/etc/config is running on the machine. To use separate credentials for the…
user6309798
1 2 3
99
100