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, through a console, or by using an Infrastructure as Code tool like terraform

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
36510 questions
97
votes
7 answers

Amazon EC2, mysql aborting start because InnoDB: mmap (x bytes) failed; errno 12

I have a micro instance server on EC2 based on this mysql server fails frequently and for the third time mysql server is gone. The logs only shows 120423 09:13:38 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 120423 09:14:27…
pmoubed
  • 3,842
  • 10
  • 37
  • 60
96
votes
2 answers

How to store data in S3 and allow user access in a secure way with rails API / iOS client?

I am new to writing Rails and APIs. I need some help with S3 storage solution. Here's my problem. I am writing an API for an iOS app where the users login with the Facebook API on iOS. The server validates the user against the token Facebook issues…
dineth
  • 9,822
  • 6
  • 32
  • 39
95
votes
24 answers

EC2 ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I got this permission denied problem when I want to ssh to my ec2 host. I tried existing solution chmod 600 "My.pem" but still didn't work. Here is my debug information: debug1: Reading configuration data /etc/ssh/ssh_config debug1:…
lawzlo
  • 983
  • 1
  • 6
  • 8
95
votes
14 answers

Auto Shutdown and Start Amazon EC2 Instance

Can I automatically start and terminate my Amazon instance using Amazon API? Can you please describe how this can be done? I ideally need to start the instance and stop the instance at specified time intervals every day.
Pasta
  • 2,491
  • 5
  • 24
  • 33
95
votes
3 answers

Creating AMI takes so long

I'm creating an AMI for a server with 100G files. It's been like an hour and it's still not finished. (The AMI still says pending) Is there something wrong with it? What should I do?
jackhao
  • 3,457
  • 3
  • 22
  • 43
93
votes
4 answers

Where does elastic beanstalk t2 server store my node.js app files?

From an architecture perspective I'm trying to get a better understand of how and where files deployed to eb (t2) server are stored. I see some .zip files in s3 that show when I upload something via the eb interface, though how/where exactly does…
Justin
  • 2,940
  • 3
  • 25
  • 43
93
votes
3 answers

EC2: How to add port 8080 in security group?

I want to add port 8080 to EC2 security group to access tomcat. But whenever I select HTTP from drop down I get 80 port as default and also can't change it. So how can I add 8080 so that I can access Tomcat publicly?
Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
93
votes
12 answers

How to set the time zone in Amazon EC2?

I want to change the time zone set in my Amazon EC2 instance running Ubuntu Linux to local time? My Question How to change the time zone in Amazon EC2?
Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166
92
votes
1 answer

Is it possible to change the availability zone of an existing EC2 t1.micro instance?

Sometimes when trying to launch my t1.micro EC2 instance, it cannot be provisioned and Amazon recommends trying a different availability zone. Is it possible to change this for an existing instance?
anon
  • 4,163
  • 3
  • 29
  • 26
92
votes
10 answers

How could I determine which AWS location is best for serving customers from a particular region?

AWS has several locations for storage and EC2 instances to run upon with different pricing. How could I determine which location is best for a particular region. Is it intuitive (closer to your serving region is the best) or are there any…
Gagandeep Singh
  • 5,755
  • 4
  • 41
  • 60
92
votes
4 answers

How to export database from Amazon RDS MySQL instance to local instance?

AWS documentation has this page that talks about importing and exporting data from MySQL server, but it's mostly about import. The only thing I see in their documentation is a way to export 5.6 data using replication, which is documented here. I was…
Srini K
  • 3,315
  • 10
  • 37
  • 47
91
votes
6 answers

Error: Public Key Certificate and Private Key doesn't match

I'm trying to install a GoDaddy SSL certificate on a new load balancer I'm setting up on Amazon AWS. I originally created the certificate at Godaddy using the keytool program for direct installation on a Glassfish 3.1 server (Amazon linux ami). I…
Felby
  • 4,045
  • 4
  • 26
  • 23
91
votes
26 answers

Issue when trying to delete VPC and Network Interface

I am trying to delete AWS VPC (a non default one). I am getting error that "We could not delete the following VPC (vpc-xxxxxxx (xx.xx.xx.x/16)) Network interface 'eni-xxxxxx' is currently in use. (Service: AmazonEC2; Status Code: 400; Error Code:…
Sujoy
  • 1,186
  • 1
  • 9
  • 12
91
votes
7 answers

When should one use the following: Amazon EC2, Google App Engine, Microsoft Azure and Salesforce.com?

I am asking this in very general sense. Both from cloud provider and cloud consumer's perspective. Also the question is not for any specific kind of application (in fact the intention is to know which type of applications/domains can fit into which…
user32262
  • 8,660
  • 21
  • 64
  • 77
90
votes
13 answers

How do I set up SSH access for an Amazon EC2 instance?

I need SSH access to an Amazon EC2 instance running Ubuntu 10.4. All I have is the Amazon username and password. Any ideas?
BetaRide
  • 16,207
  • 29
  • 99
  • 177