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
112
votes
8 answers

MySQL/Amazon RDS error: "you do not have SUPER privileges..."

I'm attempting to copy my mysql database from an Amazon EC2 to an RDS: I successfully did a mysqldump of my database into my root folder using this: root@ip-xx-xx-xx-xx:~# mysqldump my_database -u my_username -p > my_database.sql Then I tried to…
tim peterson
  • 22,033
  • 50
  • 162
  • 279
111
votes
25 answers

Possible reasons for timeout when trying to access EC2 instance

I cannot SSH into my instance - Operation timed out. What could be the reasons why, and what can I do to resolve it? Rebooting normally takes a long time to take effect, and might just makes things worst UPDATE: It is not about permissions - i can…
ming yeow
  • 25,786
  • 31
  • 111
  • 172
111
votes
4 answers

How to link godaddy domain with AWS Elastic Beanstalk environment?

I'm running into this problem trying to link my Godaddy domain with an AWS Elastic Beanstalk instance. I found a lot of documentation on how to link an EC2 instance with a domain on Godaddy but not for Elastic Beanstalk instance. So I ended up with…
Bob Bill
  • 1,111
  • 2
  • 8
  • 3
110
votes
6 answers

Can I change the root EBS device of my amazon EC2 instance?

I have an EBS backed Amazon EC2 instance. I would like to change the root device on this instance. Can you please advise the best way to go about this? I only find documentation on changing several attributes of block devices, but they don't seem to…
cone
  • 1,505
  • 3
  • 12
  • 13
110
votes
10 answers

Redirecting EC2 Elastic Load Balancer from HTTP to HTTPS

I want to redirect all the HTTP request to https request on ELB. I have two EC2 instances. I am using nginx for the server. I have tried a rewriting the nginx conf files without any success. I would love some advice on it.
Amit Badheka
  • 2,447
  • 4
  • 15
  • 27
104
votes
16 answers

Query EC2 tags from within instance

Amazon recently added the wonderful feature of tagging EC2 instances with key-value pairs to make management of large numbers of VMs a bit easier. Is there some way to query these tags in the same way as some of the other user-set data? For…
Josh Lindsey
  • 7,557
  • 3
  • 21
  • 25
103
votes
2 answers

Cost of storing AMI

I understand Amazon will charge per GB provisioned EBS storage. If I create AMI of my instance, does this mean my EBS volume will be duplicated, and hence incur additional cost? Is there other cost charge in creating and storing an AMI (Amazon…
gerrytan
  • 37,387
  • 8
  • 78
  • 91
103
votes
3 answers

How to open a web server port on EC2 instance

I'm running a CherryPy web server at 0.0.0.0:8787 on an EC2 instance. I can connect to the web server via local wget on the EC2 machine, but I can't reach the instance from my own remote machine (I connect to EC2 via ssh). Do I need to open up port…
Cat
  • 6,270
  • 8
  • 29
  • 34
102
votes
7 answers

Proper access policy for Amazon Elastic Search Cluster

I've recently started using the new Amazon Elasticsearch Service and I can't seem to figure out the access policy I need so that I can only access the services from my EC2 instances that have a specific IAM role assigned to them. Here's an example…
102
votes
7 answers

How can I use Spring Security without sessions?

I am building a web application with Spring Security that will live on Amazon EC2 and use Amazon's Elastic Load Balancers. Unfortunately, ELB does not support sticky sessions, so I need to ensure my application works properly without sessions. So…
Jarrod Carlson
  • 1,797
  • 3
  • 14
  • 18
100
votes
15 answers

EC2 Can't resize volume after increasing size

I have followed the steps for resizing an EC2 volume Stopped the instance Took a snapshot of the current volume Created a new volume out of the previous snapshot with a bigger size in the same region Deattached the old volume from the…
Wilman Arambillete
  • 1,231
  • 2
  • 9
  • 12
97
votes
9 answers

Can you connect to Amazon ElastiСache Redis outside of Amazon?

I'm able to connect to an ElastiCache Redis instance in a VPC from EC2 instances. But I would like to know if there is a way to connect to an ElastiCache Redis node outside of Amazon EC2 instances, such as from my local dev setup or VPS instances…
Loic Duros
  • 4,672
  • 8
  • 36
  • 52
96
votes
4 answers

What happens when I reboot an EC2 instance?

When I reboot an EC2 instance, do I get the initial image again, or is the state of the hard disk before the reboot kept? And what happens with billing, does the hour start again, or do I continue with the fraction of the hour I was in when I…
flybywire
  • 232,954
  • 184
  • 384
  • 491
95
votes
6 answers

Amazon AWS Filezilla transfer permission denied

I have my instance of the Amazon AWS running, test page is up. I am trying to SFTP the files to the server to display my website. I have Filezilla connected to the AWS server but when I try to move the files from my local machine to the…
zburns12
  • 1,563
  • 2
  • 14
  • 16
95
votes
8 answers

Node.js app can't run on port 80 even though there's no other process blocking the port

I'm running an instance of Debian on Amazon EC2 with Node.js installed. If I run the code below: http = require('http'); http.createServer(function (request, response){ response.writeHead(200, {'Content-Type':'text/plain'}); response.end('Hello…
Brian Yeh
  • 2,595
  • 3
  • 19
  • 30