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
844
votes
34 answers

Trying to SSH into an Amazon Ec2 instance - permission error

This is probably a stupidly simple question to some :) I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to SSH in. When I tried to ssh with: ssh -i myfile.pem I…
Matt Roberts
  • 24,113
  • 29
  • 94
  • 164
515
votes
2 answers

Lost httpd.conf file located apache

How can I find where my httpd.conf file is located? I am running an Ubuntu Linux server from the Amazon Web Services EC2 (Elastic Compute Cloud) and I can't find my Apache config.
Shalin Shah
  • 7,965
  • 6
  • 25
  • 40
451
votes
23 answers

Change key pair for ec2 instance

How do I change the key pair for my ec2 instance in AWS management console? I can stop the instance, I can create new key pair, but I don't see any link to modify the instance's key pair.
Michael Chen
  • 4,608
  • 3
  • 13
  • 9
446
votes
14 answers

scp (secure copy) to ec2 instance without password

I have an EC2 instance running (FreeBSD 9 AMI ami-8cce3fe5), and I can ssh into it using my amazon-created key file without password prompt, no problem. However, when I want to copy a file to the instance using scp I am asked to enter a…
Hoff
  • 34,679
  • 17
  • 65
  • 89
431
votes
5 answers

What is difference between Lightsail and EC2?

Recently Amazon launched Lightsail. Is there any difference between them? If yes, then what's the difference? Are Lightsail instances more powerful than EC2?
mohitmun
  • 4,841
  • 3
  • 15
  • 16
408
votes
32 answers

How to get the instance id from within an ec2 instance?

How can I find out the instance id of an ec2 instance from within the ec2 instance?
flybywire
  • 232,954
  • 184
  • 384
  • 491
385
votes
10 answers

Benefits of EBS vs. instance-store (and vice-versa)

I'm unclear as to what benefits I get from EBS vs. instance-store for my instances on Amazon EC2. If anything, it seems that EBS is way more useful (stop, start, persist + better speed) at relatively little difference in cost...? Also, is there any…
HelloWorldy
  • 3,981
  • 3
  • 14
  • 5
355
votes
5 answers

How to safely upgrade an Amazon EC2 instance from t1.micro to large?

I have an Amazon EC2 micro instance (t1.micro). I want to upgrade this instance to large. This is our production environment, so what is the best and risk-free way to do this? Is there any step by step guide to do this?
gandil
  • 5,348
  • 4
  • 22
  • 44
355
votes
29 answers

Permission denied (publickey) when SSH Access to Amazon EC2 instance

I want to use my Amazon ec2 instance but faced the following error: Permission denied (publickey). I have created my key pair and downloaded .pem file. Given: chmod 600 pem file. Then, this command ssh -i…
Kashiftufail
  • 10,487
  • 10
  • 41
  • 78
348
votes
14 answers

Connect to Amazon EC2 file directory using Filezilla and SFTP

I have created an AWS EC2 Instance and I want to be able to upload files to the server directory using FileZilla in the simplest and most straightforward fashion possible.
Eric Brotto
  • 49,233
  • 29
  • 122
  • 171
342
votes
2 answers

Difference between Amazon EC2 and AWS Elastic Beanstalk

Can someone please explain what is the difference between EC2 and Beanstalk. I want to know regarding SaaS, PaaS and IaaS. To deploy a web application in Wordpress I need a scalable hosting service. If there anything better than my purpose, please…
329
votes
15 answers

SSH to Elastic Beanstalk instance

I just signed up for Amazon's new Elastic Beanstalk offering. What I can't figure out is how to SSH to a Beanstalk instance. I don't have a private key because Beanstalk generated the instance on my behalf.
323
votes
19 answers

EC2 instance has no public DNS

A guy I work with gave me the EC2 credentials to log onto his EC2 console. I was not the one who set it up. Some of the instances show a public dns name and others have a blank public DNS. I want to be able to connect to the instances that have a…
user1456508
  • 3,361
  • 2
  • 12
  • 11
309
votes
10 answers

How do you add swap to an EC2 instance?

I'm currently running an ec2 micro instance and i've been finding that the instance occasionally runs out of memory. Other than using a larger instance size, what else can be done?
ajtrichards
  • 26,991
  • 13
  • 84
  • 93
299
votes
5 answers

What data is stored in Ephemeral Storage of Amazon EC2 instance?

I am trying to stop a Amazon EC2 instance and get the warning message Warning: Please note that any data on the ephemeral storage of your instance will be lost when it is stopped. My Question What data is stored in ephemeral storage of an Amazon…
Gaurav Agarwal
  • 17,165
  • 28
  • 97
  • 157
1
2 3
99 100