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

learn more… | top users | synonyms (1)

1
vote
4answers
2k views

Can't access site on EC2 instance via public ip

I have Amazon EC2 micro instance with window 2008 server and deployed one sample web application over there which uses java and deployed on tomcat 7 server. I am able to access it locally on ...
4
votes
2answers
3k views

Nginx Solution for AWS Amazon ELB Health Checks - return 200 without IF

I have the following code that is working on Nginx to keep the AWS ELB healthcheck happy. map $http_user_agent $ignore { default 0; "ELB-HealthChecker/1.0" 1; } server { location / { if ...
0
votes
2answers
332 views

Wordpress slow when publishing

I have an Wordpress website with more than 219k of posts, and everytime when I publish something my CPU/MySQL usage go to 100%. I really don't know why, because my entire website stay on 6% all day ...
0
votes
1answer
16 views

Access EC2 site with port

Hi I have create new site in EC2 with port 8099. Which I can access fine within the server like. http://localhost:8099/Site.html But while trying locally http://00.00.00.00:8099/Site.html //note: ...
0
votes
0answers
16 views

setup postfix SMTP on amazon ec2

Im trying to setup a postfix SMTP mail server on my amazon ec2 instance. I followed this guide http://cybart.com/how-to-install-and-configure-postfix-on-amazon-ec2/ and many others I found which ...
-1
votes
0answers
15 views

unable to connect to ec2 instance via internet browser

I have an AWS ec2 rhel instance up. My security group is set with every possible protocol and port open for both incoming and outgoing traffic. It is pingable from my computer. My computer is ...
0
votes
1answer
1k views

How do you get multiple ports working with nginx proxy_pass and Node Express?

I have multiple node instances running each on a different port. (8000, 8001, etc.) I also have nginx running on port 80. What I am trying to do is allow a user to enter my site via a single domain ...
-1
votes
1answer
11 views

How can I easily backup multiple folders on EC2 to S3

I move dockers around a lot on EC2 instances. Each docker has a specific folder on the host where it stores it's data. I want to create a single backup script that will look for any of a list of ...
5
votes
4answers
7k views

Nginx set_real_ip_from AWS ELB load balancer address

I have a set of Nginx servers behind an Amazon ELB load balancer. I am using set_real_ip (from the HttpRealIpModule) so that I can access the originating client IP address on these servers (for ...
-1
votes
0answers
9 views

Script to Mount instance store volumes [on hold]

Im not a Linux guy and i have these 4 instance store volumes on my Ec2, Can some one give shell script to create file system-->mount at server starts. xvdc 202:32 0 745.2G 0 disk xvdd 202:48 ...
1
vote
1answer
951 views

Sending email is often very slow after changing to VPC instance

We changed our micro instance to a small within a VPC and now sending email is sometimes fast and quite a lot of the time very very slow. Its as if our web pages are going to hang and then they ...
1
vote
1answer
21 views

EC2 Dashboard says instnce running but DevOps says ec2 instance is stopping/restarting

I am facing a really weird issue with AWS. I have four ec2 instances which are in running state on the ec2 dashboard. However, when I view them under dev ops it says they are stopping or restarting ...
1
vote
0answers
8 views

IAM Action for `Get-EC2Instance` command in Powershell SDK

Calling Get-EC2Instance from EC2 instance and getting Get-EC2Instance : You are not authorized to perform this operation. Which IAM action do I need to add to my policy?
-1
votes
0answers
10 views

How to create a chef recipe that delete a files [on hold]

I have just deployed my Yii App to an Amazon Web Services EC2 instance, using Amazon OpsWorks. I have several chef recipies for my PHP Server Stack, that properly download my codebase, and then run ...
0
votes
0answers
11 views

In AWS Datapipeline how can I name my EC2 instance resource (or tag it)

I am starting to use Datapipelines in AWS and it creates EC2 instances but the lack of a name makes it feel a bit sketchy just looking at the list of running instances in my account. I'd like to have ...
1
vote
0answers
23 views

AWS service to expose key/value pairs to EC2 instances

Is there a centralized AWS service to expose key/value pairs to EC2 instances easily? I'd prefer a way that either exposes as a https endpoint, or injects them into environment variables without ...
-1
votes
1answer
8 views

On Linux/UNIX (Amazon VPC) reserved instance, can I launch ubuntu instance

Accidentally while purchasing reserved instance, I have selected Linux/UNIX (Amazon VPC) as the platform. But I want to run Ubuntu as the OS on the instance that I am going to launch. Is it possible ...
0
votes
2answers
80 views

Using MySQL with Ejabberd

I'm trying to integrate MySQL into Ejabberd but I'm constantly facing problem with it. I'm working in AWS EC2 environment and I have 1 EC2 instance that has MySQL, Ejabberd and latest Erlang (Version ...
6
votes
5answers
2k views

Correctly setting the hostname - Fedora 20 on Amazon EC2

Context I have a Fedora 20 cloud image running on Amazon EC2 (henceforth called the "instance"). And I have some uncertainty about persistently setting its hostname. Goal In this case, let's say I ...
-1
votes
0answers
17 views

Route all outbound AWS Beanstalk traffic from one IP through VPN

Setup: I have an AMAZON VPC with a public subnet, Elastic Beanstalk for deployment and scaling, and a VPN. What I'm trying to do is have all the instances created through Elastic Beanstalk outbound ...
0
votes
1answer
20 views

Is / in memory? AWS/EC2 Ubuntu Server 14.04 LTS (HVM)

I've been investigating this for a while, and I'm really confused. I have an AWS/EC2 m3.medium instance running Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-d05e75b8. I ran into a problem ...
4
votes
1answer
962 views

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 ...
0
votes
0answers
41 views

Nginx 400 Bad Request on ec2 Public IP works, but domain name does not

A couple days ago, my ubuntu t2.micro ec2 instance stopped working. I just got it restarted again, but now only my public IP address given by amazon works. The domain name I bought does not. It worked ...
4
votes
2answers
7k views

How to create a local backup of a remote Amazon RDS MySQL database?

How do I create a local backup of a remote Amazon RDS MySQL database? What I need to know is how to make a complete full local backup of a MySQL database (not a remote Amazon snapshot) that can be ...
1
vote
1answer
86 views

jboss cluster in ec2 with s3ping

Am trying to get s3ping discovery method working in wildfly 8.0.0. I am using default Amazon Linux AMI and using chef to launch instances in ec2 based on this tutorial ...
0
votes
0answers
74 views

Is a single instance VM with a SLA possible in Azure with 3rd party software?

I understand that single instance VMs aren't eligible for an SLA in Azure. For the SMB customers who have important applications that weren't built well enough (Sage 50 in my case) to allow you to ...
2
votes
1answer
1k views

Second ENI in AWS VPC is not accessible on Ubuntu instance

I'm just getting into VPC, trying to understand how everything works. So far the biggest hurdle I've run into is that any time I add a second Elastic NIC to a machine, that second IP is not accessible ...
0
votes
0answers
26 views

Varnish configuration with Apache webserver in AWS ec2 free tier

I have AWS ec2 free tier where i have deployed my sample. I have configured the webserver to listen on 80 port. I am able to access the application by the below URL http://X.X.X.X/SampleApp But ...
0
votes
2answers
451 views

Ansible AWS dynamic inventory: `./ec2.py --list` unauthorized

I'm trying to use Ansible's ./ec2.py --list --refresh-cache to list my AWS EC2 instances. Via documentation, I've run through this checklist: AWS (docs via Amazon's Controlling Access to Amazon EC2 ...
-1
votes
1answer
19 views

How to create RAW or Virtual Hard Disk (VHD), or ESX Virtual Machine Disk (VMDK) disk in Linux?

Amazon EC2 allows import of disk volumes to EBS as documented here. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/importing-your-volumes-into-amazon-ebs.html Trouble is I can find no explanation ...
-1
votes
1answer
14 views

Required IAM permissions for ec2.requestSpotInstances?

I'm trying to set permissions on an IAM role that will submit a new spot instance request if needed. It will be used by a Lambda function. The code does the following AWS API calls: ...
2
votes
1answer
457 views

How can I whitelist oubound-from-private-subnet traffic to S3 on the NAT instance of an EC2 VPC?

I'm researching privacy-compliant high-security deployment options for AWS VPC. I'm looking for a method of tightening outbound traffic from the private subnets at the NAT instance. For example, how ...
1
vote
5answers
1k views

Move large (100GB) file to EC2 instance from my colo data center

I am setting up a new EC2 instance. As part of this, I need to move a large file (100GB) up to EC2 from our colo data center. (E.g. the colo site has lots of bandwidth....). My EC2 instance has a ...
1
vote
1answer
1k views

Open ports between Elastic Beanstalk and one EC2 instance on AWS

I currently have the following setup: An API (Node.JS) running using Elastic Beanstalk, which is currently only running one EC2 instance A MongoDB instance running on a seperate EC2 instance ...
0
votes
2answers
1k views

cannot connect to MS FTP 7.5 on Windows 2008 on Amazon EC2 instance

I have just installed the MS FTP 7.5 upgrade on my Windows 2008 Server (Service Pack 2) running on an Amazon EC2 instance. In the FTP Firewall Support settings for the server in IIS Manager I have ...
16
votes
4answers
10k views

Create an AWS HVM Linux AMI from an Existing Paravirtual Linux AMI

Is it possible to create a hardware virtual machine (HVM) AMI from an existing paravirtual (PV) AMI. My initially thought was to start a new PV instance and use the ec2-create-image command to ...
1
vote
1answer
53 views

Auto-scaling docker containers based on EC2 instance load and SQS

I'll start with a small description of how my application works.. If a user on my website adds a task, the task is broken down into multiple sub-tasks, the number can vary from 1 to 10 tasks. These ...
0
votes
2answers
37 views

What's the difference between EIP and public IP in AWS?

Anything different between EIP and Public IP in AWS? If launch an instance in EC2-Classic, EIP = Public IP? If launch an instance in EC2-VPC, the public IP of an instance can be the NAT address?
0
votes
0answers
23 views

I accidentally installed whereami on my EC2 instance (ubuntu) now I can't ssh into machine

I misunderstood what this command does I believe. I thought it just told you the hostname, but apparently it tries to make changes to your networking configuration as well. Is there anything I can do ...
0
votes
0answers
15 views

UpdatePolicy in AutoScalingGroup failes to update instances

I have used the following settings in the CloudFormation for creating an autoscaling group: "myautoscalinggroup": { "Type": "AWS::AutoScaling::AutoScalingGroup", "UpdatePolicy" : { ...
1
vote
2answers
2k views

Ubuntu EC2 Raid0 Ephemeral — SSH connection after reboot

First, I launch a fresh large instance using the Elestic AMI ami-c162a9a8. Initially, I run: df -h /dev/xvda1 9.9G 814M 8.6G 9% / udev 3.7G 4.0K 3.7G 1% /dev ...
19
votes
2answers
24k views

Bandwidth limits for Amazon EC2

I have a micro instance on Amazon EC2 cloud. Also the instance is small and it has vary low CPU and EAM usage but it generates a lot of content, so it can be considered like a web server serving ...
0
votes
0answers
12 views

Can you use pivot_root to mount an EBS root onto an EC2 Spot Instance?

I was looking at the instructions here http://www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml I wonder if these can be modified to remount an EBS volume as the root fs in an EC2 ...
0
votes
2answers
312 views

How to increase mysql back_log

I have programs using mysql heavily, and a large amount of slow queries and an even larger number of fast ones, all happening simultaneously. I want to increase the back_log variable using : SET ...
0
votes
1answer
22 views

EC2 consistent snapshot [closed]

I have seen couple of posts regarding ec2 backup using ec2-consistent-snapshot. Need to know if its possible to have one single infrastructure backup server and from there we can have all the servers ...
0
votes
2answers
38 views

Cannot connect to MySQL on EC2 over tunnel

For security reasons we want to connect to MySQL running on EC2 over ssh. We have other servers where we do this with no issues, but for some reason on EC2 it's not working. The instance is running ...
1
vote
3answers
825 views

Amazon EC2 MS SQL Instances

We have an Amazon EC2 box running the Windows Server 2008 with MS SQL Server 2008 R2. The default instance of the SQL server is running fine (the default MSSQLSERVER), we want to add a second one - ...
-2
votes
3answers
331 views

Vertx: What do these errors mean?

I'm trying to run a java applet using the Vertx platform but getting the following errors, as I am not a java person.. I'm having a hard time understanding how to fix these, your help is much ...
1
vote
1answer
72 views

Nginx not responding with rails app deployed on aws ec2 instance using capistrano

I have a rails application deployed through capistrano on an aws ec2 instance and have passenger nginx installed on the server as well. Whenever I try and access my application using the DNS or the ...
1
vote
2answers
244 views

Copying data between AWS EC2 machines

There are times where, in order to do some debugging or perhaps a manual migration, I need to copy large chunks of data from one EC2 instance to another. When the size of the data is tiny, it's simple ...