Questions tagged [amazon-ec2]

Amazon EC2 stands for "Amazon Elastic Compute Cloud". It is a part of Amazon Web Services (AWS) and allows users to rent virtual machine instances. You can create instances, launch and manage them through a central interface, through a web API or through a console.

Amazon EC2 is a part of Amazon Web Services (AWS) and allows users to rent virtual machine instances. You can create instances, launch and manage them through a central interface, through a web API or through a console.

Generally, EC2-related questions on StackOverflow should be about the EC2 API or other programming-oriented topics. Questions about EC2 networking, OS-level issues, cost, etc. should be asked on ServerFault instead.

Resource

  1. Instance types
  2. Pricing
  3. Documentation
  4. Discussion Forum
31505 questions
147
votes
21 answers

Increasing client_max_body_size in Nginx conf on AWS Elastic Beanstalk

I'm running into "413 Request Entity Too Large" errors when posting files larger than 10MB to our API running on AWS Elastic Beanstalk. I've done quite a bit of research and believe that I need to up the client_max_body_size for Nginx, however I…
145
votes
13 answers

.htaccess not working apache

I have a server from AWS EC2 service running on Linux ubuntu and I have installed apache, php, and mysql. I have added a .htaccess file in my document root /var/www/html. I entered this code in it: ErrorDocument 404 /var/www/html/404.php and it is…
Shalin Shah
  • 7,965
  • 6
  • 25
  • 40
141
votes
28 answers

Find region from within an EC2 instance

Is there a way to look up the region of an instance from within the instance? I'm looking for something similar to the method of finding the instance id.
Gary Richardson
  • 14,893
  • 10
  • 50
  • 48
140
votes
11 answers

Can you attach Amazon EBS to multiple instances?

We currently use multiple webservers accessing one mysql server and fileserver. Looking at moving to the cloud, can I use this same setup and attach the EBS to multiple machine instances or what's another solution?
bonez05
140
votes
5 answers

How To Set Up GUI On Amazon EC2 Ubuntu server

I'm using an amazon Ubuntu EC2 instance which is only has a command line interface. I want to setup UI for that server to access using remote desktop tools. Is there any way to apply GUI to the EC2 instance?
Elisha
  • 1,588
  • 3
  • 9
  • 9
140
votes
2 answers

Add EBS to Ubuntu EC2 Instance

I'm having problem connecting EBS volume to my Ubuntu EC2 Instance. Here's what I did: From the Amazon AWS Console, I created a EBS 150GB volume and attached it to an Ubuntu 11.10 EC2 instance. Under the EBS volume properties, "Attachment" shows:…
JackDev
  • 10,244
  • 11
  • 45
  • 66
138
votes
4 answers

What is CPU Credit Balance in EC2?

I came across CPU Credit Balance in EC2 monitoring . What is CPU Credit Balance?
Ramesh Murugesan
  • 4,190
  • 5
  • 34
  • 66
133
votes
2 answers

How Can I Download a File from EC2

What scp arguments should I use to download a file from an Amazon EC2 instance to local storage?
user1226621
  • 1,375
  • 2
  • 9
  • 6
133
votes
8 answers

What are the respective advantages/limitations of Amazon RDS vs. EC2 with MySQL?

I realize a couple of basic differences between the two, i.e. EC2 is going to be cheaper RDS I wouldn't have to do maintenance Other than those two, are there any advantages to running my database from RDS as opposed to a separate EC2 server…
Macgyver
  • 1,791
  • 2
  • 14
  • 19
126
votes
13 answers

On EC2: sudo node command not found, but node without sudo is ok

I have just installed nodejs on a new EC2 micro instance. I installed it normally, ./configure -> make -> sudo make install. Problem: When I run "node" under ec2-user, it runs perfectly. When I run "sudo node", it fails. I found out that node is…
foobar
  • 9,276
  • 14
  • 46
  • 63
123
votes
8 answers

Extension exists but uuid_generate_v4 fails

At amazon ec2 RDS Postgresql: => SHOW rds.extensions; rds.extensions …
アレックス
  • 24,309
  • 37
  • 129
  • 229
117
votes
10 answers

AWS Difference between a snapshot and AMI

So I am having trouble working out what, specifically is the difference between these two. As I understand it, a snapshot is simply a backup of the disk drive, whereas the AMI is a backup of the entire system (or instance I should say), but isn't…
Melbourne2991
  • 9,735
  • 10
  • 38
  • 79
116
votes
9 answers

HTTPS setup in Amazon EC2

How do we enable HTTPS in Amazon EC2? Our site is working on HTTP.
Muhammed Asharaf
  • 1,279
  • 2
  • 10
  • 4
116
votes
4 answers

How to fix apt-get: command not found on AWS EC2?

I installed Ubuntu 12.04 on my instance and am trying to install packages using apt-get, but I am getting the following error: sudo: apt-get: command not found How do I fix this?
Pat841
  • 1,797
  • 4
  • 15
  • 14
113
votes
13 answers

How to convert Linux cron jobs to "the Amazon way"?

For better or worse, we have migrated our whole LAMP web application from dedicated machines to the cloud (Amazon EC2 machines). It's going great so far but the way we do crons is sub-optimal. I have a Amazon-specific question about how to best…
Tom
  • 13,085
  • 12
  • 61
  • 77