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
25
votes
3 answers

AWS CloudFormation: VPC default security group

I have a cfn stack that (among other things), creates a VPC, several security groups, and a handful of EC2 instances. It's trivial to assign security groups that are created within the stack to instances that are also created by the stack. However,…
EEAA
  • 109,363
  • 18
  • 175
  • 245
25
votes
4 answers

proxy:error AH00898: Error during SSL Handshake with remote server

I have a server that acts as a front-end for a cPanel mailserver in a network. The apache proxy on the front-end server ran for 152 days without fault then suddenly I now get 500/502 errors when using it to access the webmail clients of the…
DePages
  • 251
  • 1
  • 3
  • 4
25
votes
5 answers

how to SSH to EC2 without explicitly using the pem key?

I have a windows as my main OS. Using VMware player, I setup a Ubuntu server 12.4 as a guest machine. The Ubuntu server have "ubuntu" user. I created a new EC2 instance + setup pem key. From the windows machine, when I use putty+pem key - I can…
user798562
  • 251
  • 1
  • 3
  • 3
25
votes
4 answers

Amazon EC2 Data Persistence

According to the Amazon EC2 FAQ, when an instance is terminated the data is gone. What steps can I take to preserve data in the event my instance is rebooted? I've been looking into EBS and S3 - would either of these be useful to store an active…
Kyle Cronin
  • 1,238
  • 14
  • 26
25
votes
2 answers

How to determine actual size of an amazon snapshot?

Amazon EBS snapshots capture changed blocks from a baseline, so snapshots will often be much smaller than the source volume. Billing is based on the actual size, which is nice. However, I cannot find a way to determine the snapshot actual size. …
Elroy Flynn
  • 530
  • 1
  • 6
  • 8
25
votes
5 answers

How to move S3 bucket to different location

We use S3 for storing millions of entries in our webapp, now we move the whole thing to EC2, EU servers, and we also want to move that S3 data to EU. But the bucket we use is in US, and there seem to be no tool to move whole bucket content to…
skrat
  • 505
  • 1
  • 7
  • 14
24
votes
7 answers

How to verify a AWS VPC (S3) endpoint works?

I added a VPC endpoint to my VPC using CloudFormation, and allowed s3 usage. The routes are visible in the AWS console, but not in the local routing tables of the EC2 instances: $ route -n Kernel IP routing table Destination Gateway …
M. Glatki
  • 1,964
  • 1
  • 17
  • 33
24
votes
6 answers

How to reduce AWS EBS root volume size?

Enlarging an EC2 instance is easy like a breath (for instance, create an AMI, launch an instance from it and then change the storage size). But reducing it becomes more difficult. I’d like to reduce an Amazon Web Services (AWS) EC2 instance Elastic…
herve
  • 340
  • 1
  • 2
  • 5
24
votes
5 answers

Why can't I ping my freshly set up amazon web service EC2 instance?

I was following this tut on how to set up a EC2 instance on Ubuntu but qhen trying to execute ssh command on my IP address, I had an operation Timeout. So I tried to ping it but no chance neither. got Request timeout Any idea what to do to make it…
Miles M.
  • 371
  • 1
  • 3
  • 11
24
votes
5 answers

How do I Install Intermediate Certificates (in AWS)?

I have installed private key (pem encoded) and public key certificate (pem encoded) on Amazon Load Balancer. However, when I check the SSL with site test tool, I get the following error: Error while checking the SSL Certificate!! Unable to get the…
getmizanur
  • 593
  • 1
  • 5
  • 13
23
votes
9 answers

How to get Autoscaling group Instances IP adresses

How can I get private IP adresses of all the instances which are part of an AutoScaling group. I am trying to do some operation on all the instances which are part of an autoscaling group.
Ramesh Kumar
  • 1,770
  • 5
  • 19
  • 29
23
votes
1 answer

Creating an EC2 AMI Image from a running instance vs. from a volume snapshot

I want to backup a Linux-based EC2 instance while it is running with no downtime, and then later on launch a new instance. (The instance is running a web server and Postgres database.) I found there are two ways to do this, but I am confused on…
Vilsepi
  • 333
  • 1
  • 2
  • 7
23
votes
9 answers

Amazon EC2 - No SSH After Reboot, Connection Refused

I've replicated this two or three times, so I'm guessing there's something wrong with what I'm doing. Here are my steps: Launch new instance via EC2 Management console using: Ubuntu Server 13.10 - ami-ace67f9c (64-bit) Launch with defaults (using…
SteadH
  • 666
  • 3
  • 16
  • 33
23
votes
4 answers

Why does Amazon release private keys instead of public keys?

My brain is wrapped around the axle on public and private keys. When you create a cloud server (instance) on Amazon's EC2 service and then want to connect to it via SSH, Amazon requires you to download private a key to make the connection. Doesn't…
Seth
  • 433
  • 1
  • 4
  • 8
23
votes
3 answers

Why have both security groups and iptables on Amazon EC2?

I recently stumbled upon a firewall issue with my EC2 instance. The TCP port was made available to everyone via the EC2 Security Group, however there was still instance-side filtering using iptables. I figured if anything Security Groups are just a…
imaginative
  • 1,971
  • 10
  • 32
  • 48