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

Deploying Parse server with Parse Live Query on AWS elasticbeanstalk

I have deployed NodeJs Parse server with Parse LiveQuery on AWS elasticbeanstalk but it seems like LiveQuery is not working. When i try to subscribe from my iOS client app it gives me error. Error: Error Domain=SRWebSocketErrorDomain Code=2132…
1
vote
2 answers

How do I tar a directory named by my script?

I am writing a script to tar a directory, then upload the tarball to S3. The directory is named based on a date, month-year. Here is my attempt: TARNAME=`date --date="$(date +%Y-%m-15) -1 months" +' %B-%Y'` tar cvfz /tmp/$TARNAME.tar.gz …
Roger Creasy
  • 861
  • 3
  • 11
  • 18
1
vote
1 answer

Trying to upload VM (Ubuntu Server) to AWS EC2. ERROR: image not found

I have followed all the steps in AWS's documentation to the letter, but am getting this "ERROR: image not found" when I try to upload via CLI (I'm on Mac OS X Mavericks in the terminal). I exported the VM from VMware Workstation and saved it as an…
SamAndrew81
  • 284
  • 1
  • 6
  • 20
1
vote
2 answers

How to take EBS Volume snapshot and store to S3 Reduced Redundancy?

By default, EBS Volume snapshots on AWS are stored to S3 Standard storage. I would like to figure out how to direct those snapshots to Reduced Redundancy storage instead. I've been trudging through documentation without finding the magic AWS CLI…
1
vote
0 answers

Enabling S3 bucket as website using cli

I figured out how to create an S3 bucket using aws command line. Is it possible to enable the s3 bucket I created as website using aws cli? The reason I'm doing this is because we're automating everything.
devwannabe
  • 181
  • 3
  • 14
1
vote
1 answer

AWS CLI copy life-cycle configuration between buckets

I am trying to read-modify-write an existing life-cycle configuration. So the simpler thing I am staring out with is copying a life-cycle configuration between buckets. From reading through the documentation it should be something like: aws s3api…
sysjas
  • 193
  • 2
  • 4
  • 16
1
vote
1 answer

Is there any way to transfer S3 data between AWS locations and not be charged?

We need to transfer our São Paulo buckets to US East so we can make use of glacier. Those buckets have more than 4Tb each. We moved the first using AWS API using an instance at US East to send those requests and it cost over $800. Do you know any…
otaviofcs
  • 178
  • 8
1
vote
1 answer

Describe terminated ec2 instances, or access spot instance history via CLI

I'm trying to get the launch and termination times of instances in a spot fleet request. This data is visible in the new spot requests console under the "History" tab when a spot request is selected. aws ec2 describe-instances only lists recently…
ZachB
  • 121
  • 6
1
vote
3 answers

Pip / boto problems - ImportError: No module named boto3

I want to get boto3 working in a python3 script. I can execute aws commands from the cli. After updating pip, it doesn't run with sudo rights unless I use the absolute path: /usr/local/bin/pip. Without sudo rights it works. I have no idea why it…
SPRBRN
  • 571
  • 4
  • 12
  • 28
1
vote
2 answers

Attempting to initialize AWS EB, getting 'signature not yet current error'

I'm on my local machine. I'm a dev guy with no idea about ops. After selecting us-east-1 for my region after running eb init on the command line, I get this: ERROR: The current user does not have the correct permissions. Reason: Operation Denied.…
Zero
  • 123
  • 1
  • 4
1
vote
1 answer

How to configure aws in order to get log events?

My question has two parts: - How to get log events? The command line tells me that I need to configure aws... - How to configure aws? I try to get log events by doing the following: sudo aws logs get-log-events --log-group-name my-group…
makansij
  • 265
  • 1
  • 5
  • 12
1
vote
1 answer

Getting error : Malformed URL error in ec2

I am getting the error Malformed URL ec2-describe-instances instance_id xxx Malformed URL: 'ec2.ap-southeast-1.amazonaws.com' However, I am able to get access to the bucket through command line: s3cmd ls s3://edgeproductionlb-logs DIR …
Ashish Karpe
  • 277
  • 2
  • 5
  • 19
1
vote
2 answers

Create Windows AMI from EBS snapshot

I made an AMI from a Windows snapshot using AWS Console, but the operation created an AMI of type "Linux (Other)". Funnily enough, the AMI launches and AWS charges the Linux price (!). However, I am not able to retrieve the Administrator…
1
vote
1 answer

Setting cache for already uploaded amazon s3 files

In amazon s3 for our site through s3cmd tool we uploaded around 60GB of files including mp3, jpg to a bucket. But now when we checked site slowness files are not caching and further checking we came to know that we can set…
GEO PC
  • 31
  • 2
  • 5
1
vote
1 answer

How to get IP addresses from auto-scaled instances on AWS

We're working on setting up an auto-scalable web service on AWS. One of our requirements is that we can reload the web server configuration via SSH. Usually, this isn't very hard, as it's only a matter of executing ssh user@webserver "service…
Simon
  • 193
  • 2
  • 10