Amazon Web Services (AWS) delivers a set of services that together form a reliable, scalable, and inexpensive computing platform "in the cloud". If you have a question about a specific web service, consider asking on its tag, e.g., amazon-ec2.
Questions tagged [amazon-web-services]
8595 questions
55
votes
7 answers
How to delete EC2 AMI
I know that the command ec2-create-image instance-id will be creating an image of the ec2 instance, creating snapshots file and registering as an AMI. But what is the equivalent command to delete the image which will deleting associated snapshot…

James W.
- 749
- 2
- 7
- 12
54
votes
2 answers
Are EC2 security group changes effective immediately for running instances?
I have an EC2 instance running, and it belongs to a security group. If I add a new allowed connection to that security group through AWS Management Console, should that change be effective immediately? Or perhaps only after restart of the…

Jonik
- 2,961
- 4
- 38
- 48
53
votes
11 answers
Why should I use Amazon Route 53 over my registrar's DNS servers?
I am building a site that I anticipate will have high usage. Currently, my registrar (GoDaddy) is handling DNS. However, Amazon's Route 53 looks interesting. They promise high speed and offer globally distributed DNS servers and a programmable…

Abtin Forouzandeh
- 1,299
- 3
- 12
- 13
51
votes
4 answers
How to install Docker on AWS EC2 instance with AMI (CE/EE Update)
What is the current way of installing Docker on an AWS EC2 instance running the AMI?
There has been an announcement of Docker Enterprise Edition and now I want to know if anything has changed.
Until now, I have been using yum install docker and do…

mxscho
- 682
- 2
- 6
- 11
51
votes
3 answers
Rsync to AWS S3 bucket
For a server I am hosting a website on I want to backup the data and settings to an S3 bucket. I found out that you can't directly use rsync to backup to an S3 bucket. Is there another way to achieve the following rsync command to backup the data to…

Bart Bergmans
- 633
- 1
- 6
- 9
50
votes
5 answers
Can't connect to EC2 instance in VPC (Amazon AWS)
I've taken the following steps:
Created a VPC (with a single public subnet)
Added an EC2 instance to the VPC
Allocated an elastic IP
Associated the elastic IP with the instance
Created a security group and assigned it to the instance
Modified the…

Ryan Lynch
- 603
- 1
- 5
- 6
47
votes
5 answers
Is there a cloud-based reverse proxy solution in AWS?
The system
I have an API deployed on EC2 machines on AWS. Incoming HTTPS requests are passed to an elastic load balancer. The load balancer handles the SSL, and passes the request to an Nginx server, that proxies the requests to the specific…

Adam Matan
- 13,194
- 19
- 55
- 75
46
votes
5 answers
Why can't I reach my Amazon EC2 instance via its Elastic IP address?
The server works fine via the Amazon assigned DNS entry, but I cannot reach it (using a browser) via the Elastic IP address Amazon assigned the box. Ping does not work either. I am trying to confirm it is reachable before I add the IP address to my…

Guido Anselmi
- 563
- 1
- 4
- 5
45
votes
3 answers
Can different AWS accounts manage different subdomains?
I have two AWS accounts. The master account with example.com as a Hosted Zone, this then has a number of record sets (i.e. api.example.com and kibana.example.com).
A second account will be managing testing.example.com as a Hosted Zone, with the…

mlk
- 561
- 1
- 4
- 7
42
votes
14 answers
AWS: Environment named *** is in an invalid state for this operation. Must be Ready
I get a message when I am trying to deploy my php app on EC2 using Elastic Beanstalk.
Environment named *** is in an invalid state for this operation. Must be Ready.
I am unable to deploy. The server status is running, no warnings.
My experience…

Dr Casper Black
- 665
- 1
- 7
- 12
40
votes
2 answers
AWS S3 charging for 4 TB of storage when only using less than 1 GB
I'm having trouble understanding my large S3 bill, and figured I'd ask here before dropping $30 on AWS monthly support.
Basically, I have an Amazon EC2 instance that makes an API to different cryptocurrency exchanges and saves the responses to the…

Garglesoap
- 512
- 1
- 4
- 8
40
votes
11 answers
How do you restart all Tasks of a Service?
We have a task that loads some configuration files from an external data source. After the settings are uploaded we would like to be able to restart all the tasks in a service so that the settings propagate to all instances.
What's the best way to…

Dennkster
- 501
- 1
- 4
- 3
40
votes
7 answers
Update the container of a service in Amazon ECS
What kind of approach is recommended for updating the container of a service which is running in Amazon ECS?
The AWS documentation says: "If you have updated the Docker image of your application, you can create a new task definition with that image…

Petrus Repo
- 502
- 1
- 4
- 7
36
votes
16 answers
Can't run AWS CLI from CRON (credentials)
Trying to run a simple AWS CLI backup script. It loops through lines in an include file, backs those paths up to S3, and dumps output to a log file. When I run this command directly, it runs without any error. When I run it through CRON I get an…

binaryorganic
- 6,021
- 4
- 18
- 19
35
votes
7 answers
Locked out of my own server: getting "Too many authentication failures" right away when connecting via ssh
I have an AWS EC2 Ubuntu instance for pet projects. When I tried logging in one day, this error results:
~$ ssh -i"/home/kona/.ssh/aws_kona_id" kona@server.akona.me -p22
Enter passphrase for key '/home/kona/.ssh/aws_kona_id':
Received disconnect…

Arctic Kona
- 467
- 1
- 4
- 6