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
13
votes
1 answer

AWS EC2 deny single ip address and allow all

I have a AWS EC2 instance and want deny access on port 80 for a single ip address (a bad bot). AWS console it seem support only "allow" rules. How deny a single ip address?
13
votes
3 answers

Are Amazon EC2 Private IPs reachable from any instance running in EC2?

After searching previous questions here, the general consensus seems to be if an instance that I own is assigned a private IP of 10.208.34.55, that only OTHER INSTANCES I OWN can reach it at that address. See: How to encrypt traffic between two…
jberryman
  • 914
  • 2
  • 10
  • 25
13
votes
4 answers

How are Amazon EBS snapshot's sizes calculated?

First, how can I retrieve the space consumed by my EBS snapshots? Second, according to the documentation, Amazon EBS snapshot only backs up the blocks of an EBS volume that have been modified since the last snapshot creation. Suppose I have a 10GB…
Michael Chan
  • 188
  • 1
  • 9
13
votes
1 answer

AWS EC2 migration to new instance type with SSD Drives

I have MySQL running on an m1.xlarge instance with a 100GB EBS volume holding the data files. I would like to migrate to a m3.2xlarge instance and place the data files on the new 2 x 80GB SSD drives. I stopped my instance, changed the type…
paiego
  • 253
  • 2
  • 8
13
votes
1 answer

Cloudwatch mon-put-instance-data not reporting on AMI-cloned instance

After cloning an EC2 instance using AMI (to change a hosts security group), none of the statistics reported by the Amazon-provided mon-put-instance-data.pl script are showing up in CloudWatch. I can confirm that the script is reporting the data to…
13
votes
4 answers

Running a Small 64bit Amazon EC2?

I'm playing with Amazon EC2, and I've got a 64bit AMI, but when I launch it, the 'Instance Type' only has 'Large', 'Extra Large' and 'High-CPU Extra Large', no 'Small' which the documentation lists as the default and the cheapest. Is it cause I'm…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
13
votes
3 answers

Installing from EPEL on Amazon EC2

I am trying to install fail2ban on our Amazon EC2 Linux AMI (CentOS). I know that fail2ban is in the EPEL so I have done the following: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm sudo rpm -Uvh…
williamsdb
  • 493
  • 1
  • 8
  • 18
13
votes
2 answers

How to change default user (ubuntu) via CloudInit on AWS

I'm using CloudInit to automate the startup of my instances on AWS. I followed the (scarce) documentation available at http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/annotate/head%3A/doc/examples/cloud-config.txt and examples on…
Gui Ambros
  • 1,339
  • 2
  • 13
  • 17
13
votes
4 answers

Amazon EC2 Public DNS is useless?

Seems the Public DNS, e.g. ec2-x-x-x-x.compute-1.amazonaws.com will be changed when you stop or terminated the instance. So this mean they have the same life span as the ec2 public IP address, so why should I use this public DNS? They are not easy…
Ryan
  • 5,831
  • 24
  • 72
  • 91
13
votes
6 answers

Setting up Amazon Cloudwatch to get an alert when you server is down

I have an instance running on Amazon EC2 that I turned into a webserver. Now I have been looking at cloudwatch, but I do not know if it is the correct tool for the job. Basically I want to get informed when the server is down, for whatever…
Saif Bechan
  • 10,960
  • 10
  • 42
  • 63
13
votes
2 answers

Setting Up ELB with SSL - What is Backend Authentication?

I started setting up Amazon's Elastic Load Balancing Service for my server pool and I need to setup HTTPS/SSL. I have all my SSL Certificates setup, but then I come to the step for backend authentication and I'm unsure what certificate is required…
whobutsb
  • 249
  • 2
  • 3
  • 6
13
votes
5 answers

Performance Tuning a High-Load Apache Server

I am looking to understand some server performance problems I am seeing with a (for us) heavily loaded web server. The environment is as follows: Debian Lenny (all stable packages + patched to security updates) Apache 2.2.9 PHP 5.2.6 Amazon EC2…
futureal
  • 397
  • 1
  • 3
  • 17
13
votes
5 answers

Create an ISO of an AWS EC2 Server

I would like to create an ISO of my AWS EC2 server so that I can use that as a development test environment on my local machine. Is this possible?
Ricky
  • 231
  • 2
  • 3
12
votes
3 answers

Automatically mount SSD instance storage on AWS EC2 in Ubuntu 16.04

I am using an Ubuntu 16.04 EC2 from AWS on c5d.2xlarge HW. It comes with a 200 GB SSD called /dev/nvme1n1. I am able to mount this drive using: $ sudo mkfs.ext4 -E nodiscard /dev/nvme1n1 $ sudo mount -o discard /dev/nvme1n1 /home/ubuntu To try…
John Corson
  • 123
  • 1
  • 6
12
votes
1 answer

Updating AWS CLI on Ubuntu 14.04

I installed awscli on my EC2 instance using apt-get install. The version is still aws-cli/1.2.9 and no longer updates if I use apt-get upgrade awscli. The latest release from what I Googled is 1.10.30. How can you update aws cli on Ubuntu…
julio
  • 904
  • 1
  • 9
  • 13