Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.

The Amazon Elastic Compute Cloud (EC2) service is part of the Amazon Web Services cloud platform.

EC2 offers computing power in the cloud, on demand. The 'Elastic' part of the name refers to the ability to scale both up and down, as needed.

6563 questions
21
votes
1 answer

How can I run the Ubuntu EC2 AMI images locally?

I've downloaded the Amazon Ubuntu EC2 AMI images (from http://uec-images.ubuntu.com/releases/10.04/release/) and I am trying to run it locally on my linux desktop. Is it possible to run the AMI using VirtualBox? Is some other virtualization software…
Abtin Forouzandeh
  • 1,299
  • 3
  • 12
  • 13
20
votes
2 answers

Who's behind community AMIs on Amazon EC2?

I've been using AWS for years, but have never ventured outside the Quick Start and AWS Marketplace sections when launching an EC2 instance. The AMIs from the AWS Marketplace look trustable, they have a link to the seller profile, etc.: Compare this…
BenMorel
  • 4,507
  • 10
  • 57
  • 85
20
votes
3 answers

How to find out an ec2 instance's private and public IP via aws cli?

Answers I found so far (e.g. Find out public ip address of the EC2 server) suggest using wget or curl to reach the server. They are not useful for me because my ec2 instances are not reachable from the internet directly. I have tried aws ec2…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
20
votes
2 answers

AWS EC2 what is a reservation ID exactly and what does it represent?

I made a script that creates snapshots of our EC2 volumes. The script looks at which instances are running, which volumes are connected to those instances, and then creates snapshots for those volumes, ignoring the rest. Using describe-instances, I…
SPRBRN
  • 571
  • 4
  • 12
  • 28
20
votes
2 answers

Is the Amazon EC2 instance id unique forever?

We're using amazon EC2 and we want to keep track of instaces. Is the Amazon EC2 instance-id unique forever? i.e. If a VM has an instance id of i-12345678 is there a guarantee that when that instance terminates, that instance id won't ever be used…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
20
votes
3 answers

How to set up port forwarding on Amazon EC2

I have a web application running on Amazon EC2. It listens on port 9898. I can access it by entering the ip address and port number. e.g 1.2.3.4:9898 However, what I'd really like to be able to do is to not have to enter the port…
ksl
  • 325
  • 1
  • 3
  • 11
20
votes
2 answers

In AWS, does an hour of usage get charged just for an instance being in the "running" state?

When AWS documentation and pricing refer to "usage" does this simply mean "if the instance is on" instead of "if the instance is on and doing work". E.g., if I had an EC2 instance running but it was idle (CPU=0%), I assume I still get charged for…
20
votes
3 answers

EC2 Update my existing AMI

I'm using Elastic Load Balancing to load balance my Auto Scaling Group, for that I have a private AMI that hold my application server (Tomcat) and my web app deployed to it as war ... Now everything works fine ... what if I need to change my tomcat…
20
votes
3 answers

Is it possible to force Re-creation of EC2::Instance or RDS::DBInstance in amazon cloudformation?

It's possible to force the re-creation of a EC2 or RDS instance using cloudformation stacks? My stack goes stuck in a point where simply destroying and creating the resource will fix it, instead of that I had to delete entire stack to continue…
theist
  • 1,229
  • 2
  • 10
  • 24
20
votes
1 answer

How to add user with SFTP/ FTP access to '/var/www/html/website_abc' folder on Amazon EC2 Centos?

Possible Duplicate: Linux directory permissions I'm working with some third-party developers and I would like to grant SFTP (or FTP) access to the root folder for a website they're working on i.e. '/var/www/html/website_abc' so that they could…
ericn
  • 553
  • 2
  • 8
  • 20
20
votes
5 answers

How can I make sure my amazon ec2 instance is using the reserve instance?

I purchased an Amazon EC2 instance at lower cost than regular on-demand instances. When I start a new instance in EC2 there's no indication that I would be using the reserved instance. How can I make sure that the instance I'm using is the reserved…
Charuru
  • 303
  • 1
  • 2
  • 4
20
votes
2 answers

ec2 rebooted my instance?

I found out that my CentOS 5 server on EC2 was rebooted, without my command to do so. I did not even log in on the day it was rebooted. When I look at 'last' in linux, it says: jeroen pts/0 128.97....... Thu Apr 7 15:02 - 16:28 (01:25)…
Jeroen Ooms
  • 2,239
  • 8
  • 34
  • 51
20
votes
4 answers

Unable to Share Data between Amazon EC2 Instances for Windows

I have two Amazon EC2 Instances running Windows Server 2003 and IIS 6.0. Both the instances are created in the same region and have the same Security Group. I enables icmp for all ports and connection methods, and am able to successfully ping…
Prashant
  • 616
  • 1
  • 6
  • 12
19
votes
5 answers

How to install Certbot on Amazon Linux EC2

I have an Amazon EC2 box. I have installed Apache, MariaDb and PHP on it. Among other things, I want to host a couple of WordPress websites on the EC2. How do I go about installing Certbot on Amazon Linux so that I may issue SSL certificates for the…
J86
  • 401
  • 3
  • 8
  • 15
19
votes
3 answers

Can I re-use an EBS volume with AWS ASG?

I want to create an ASG such that I can reuse existing EBS volumes (because I have persistent data on those volumes) to new EC2 instances that are instantiated via ASG. Is this possible? Update copied from comment To clarify my original question,…
steve landiss
  • 399
  • 1
  • 3
  • 8