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

learn more… | top users | synonyms (1)

26
votes
3answers
10k views

How to change the name and description of an AWS EC2 security group?

How do you change the name and description of a security group in AWS EC2? My security group is named quick-start-1 (the default) and I want to change it to "HTTP, HTTPS and Limited SSH".
0
votes
2answers
389 views

Uploading public files to Amazon ec2

I have set up an Amazon EC2 instance with Apache, PHP, and MySQL (LAMP) using this tutorial. All of that is working correctly, including phpMyAdmin, and you should be able to see the success page at: ...
0
votes
1answer
440 views

Spinning up multiple EC2 servers with knife and assigning elastic ips from a pool

I'm wondering how to go about spinning up multiple EC2 servers using knife of the same type, say 4 app servers, and assigning them each an elastic IP from a pool of available Elastic IPs. I have ...
0
votes
2answers
407 views

Amazon Cloudfront, S3 and EC2

I'm trying to use Amazon Cloudfront as a CDN provider but unsure of what other services are meant to be. Do I have to use S3 and EC2 as Virtual Server to host my files and change hosting provider in ...
0
votes
1answer
165 views

EC2 Reserved Instances - Currently have micro what to do now?

I have been running with 2 micro on demand instances. I now want to convert one of the servers to a small instance. I have purchased a Windows small reserved instance in us-east-1b and it is now ...
22
votes
7answers
6k views

How to know if a machine is an EC2 instance

I would like to run some scripts on hosts which are EC2 instances but I don't know how to be sure that the host is really an EC2 instance. I have made some tests, but this is not sufficient: Test ...
1
vote
3answers
4k views

Deny IP address on AWS ELB

I've, more or less, following configuration on AWS: Elastic load balancer with 3 machines o 3 different availability zones. My security group allows 0.0.0.0/0:80 as it's my rails application (nginx, ...
1
vote
2answers
178 views

Configure credentials on Amazon EC2 depoyment

I created a custom Linux AMI with all I need to run my PHP app (basically a node that does batch processing of images/video/audio). There can be n amount of instances running at the same time. So far ...
0
votes
3answers
2k views

CloudFront Dynamic Content & Apache using Multiple Virtual Hosts

I've tried to setup CloudFront to point to an Elastic Load Balancer. I can see the requests are reaching the web server (which as multiple Virtual hosts configured) however the requests always end up ...
0
votes
2answers
660 views

Install multiple tomcat 7 servers on single EC2 instance

I am building a tomcat cluster on an EC2 instance... I'm using the Amazon Linux AMI so I used "yum install tomcat7" to install tomcat... I need to install another copy of tomcat.. yum puts files all ...
2
votes
2answers
232 views

ec2 : private key vs certificate

Are the private key and the certificate file the same file? I'm following the steps on this website to set my environment variables. I have my private key file, but not the certificate file, so I'm ...
-2
votes
1answer
331 views

Change Amazon AMI Timezone

How do you change the timezone for the system clock for a EC2 instance running the Amazon AMI?
1
vote
3answers
761 views

Chef bootstrap ec2 — use resulting IP in another chef client's configuration

Say I have an app comprised of a web server and a database. If I ec2 deploy a chef client with the DB role, how can I automatically insert the IP of this new ec2 machine into my web server's config? ...
0
votes
3answers
2k views

ssh into EC2 instance asks for password despite using a pem file

I downloaded the pem file on my Windows machine and I am able to connect to my instance with the puttygen generated ppk file (which has a public and a private key in it). I copied the pem file over ...
0
votes
1answer
609 views

deploying perl dancer on apache with a virtual host

Forgive my lack of knowledge I'm just learning linux administration here. A week ago I read this article about setting up virtual hosts, I then installed and setup mod_perl and my perl Catalyst ...
0
votes
2answers
239 views

Replicate Amazon-ec2 development environment on local machine

I have a development vm on amazon ec2 with with a Ubuntu 12.04 LTS (64bit) instance and LAMP stack. I would like to replicate that locally on my MBP. Is that possible? How would I go about doing that? ...
0
votes
2answers
117 views

Amazon Ec2 and PHP [closed]

Some questions about hosting PHP on Amazon EC2. Is this a good option for hosting a PHP website, or should I consider any shared\cheap hosting, like Godaddy, etc? Is the free tier only available for ...
3
votes
1answer
3k views

How to check out bound network stats in AWS EC2

There is only one network interface in EC2 instance, and in the CloudWatch metric, I can only see "Max Network In" and "Max Network Out". As you know external traffic is billed (actually only ...
-4
votes
1answer
236 views

Why does nginx cost money on AWS Marketplace [closed]

I'm looking at running nginx on a m1.small instance. I noticed in the marketplace you can deploy an ami but it costs $0.024 an hour. I though nginx was an open source, free web server. What is the ...
1
vote
1answer
387 views

EC2 Multiple website on one instance, load balance

I have a question. My instance is currently using LAMP STACK by Bitnami, the first site is LAMP, the second is Magneto STACK by bitnami, My focus is on Magneto Stack. I was thinking of having the ...
0
votes
1answer
686 views

Ubuntu Mail Server Configuration on EC2 and Login in using Client like Outlook

I have configured postfix, courier on EC2 which is having Ubuntu 12. The necessary port's are opened SMTP, IMAP, POP3. Installed and configured postfixadmin. Added domain and some mail boxes. I am ...
26
votes
2answers
38k 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 ...
2
votes
4answers
2k views

Unable to scp from one EC2 instance to another EC2 instance

I am not able to scp from one EC2 instance to another EC2 instance. From my laptop I am able to ssh into each instance without issues. I have two instances. #worker1 ...
1
vote
1answer
133 views

name-based virtual host - specify a domain name and also leave the ip address open

I have a domain name called dumbdom.com. I have an elastic IP for my AWS EC2 instance called my.ela.stic.ip. The htdocs root of my linux based EC2 instance is at /var/www/html/. I have set up the ...
4
votes
1answer
375 views

Is the windows server 2008 r2 firewall in amazon ec2 not necessary

Under normal circumstances, is the windows server 2008r2 firewall, running on an amazon ec2 instance even necessary? Can it safely be turned off? It appears that thru the security groups, amazon is ...
4
votes
1answer
507 views

Which Amazon EC2 region is the best for Middle-East?

It seems that regions like Japan or Singapore travel the long way around the globe and go from US to EU and then reach destinations in Middle-East. What is the best region? Do you have any first hand ...
2
votes
2answers
133 views

Effective toy benchmark for a computer? [closed]

I wanted to do some (very rough) comparisons between different computers, seeing the relative compute performance of laptops and cloud machines (AWS EC2, rackspace, etc.). I wanted something ...
3
votes
2answers
250 views

Amazon - Delete privately shared AMI

We had to split an Amazon account into two accounts to better track usage between departments on the company. To transfer a server, we made an AMI of the EC2 server and shared it privately with the ...
1
vote
2answers
1k views

EC2 Ubuntu with WordPress can't connect to RDS

I have set up a WordPress website on a Ubuntu 12.04 Amazon ec2 machine by following this tutorial except the fact that I haven't created a MySQL database and I am using an amazon RDS MySQL service. ...
1
vote
0answers
291 views

nginx does not respect “root” directive

I'm running an EC2 instance with Ubuntu and trying to setup virtual servers for two domains without luck and cannot figure out why. My web documents are located in /var/www/<domain> and ...
1
vote
0answers
146 views

how can apache run multiple applications on same server with different path

When i ssh to amazon ec2, then pwd /home/ubuntu ls app_1 app_2 app_3 app_4 Considering i have mapped my ec2---*- address to some apps.site1.com How can i have multiple rails applications ...
1
vote
0answers
644 views

security group not allowing connection to postgres ec2 aws

Hey im having some trouble allow remote connections to postgres from other ec2 instances using the named security group feature to rules. I have set the listens directive in postgres.conf to "*" and ...
0
votes
1answer
101 views

EC2 instance communication

I currently have one EC2 instance that is starting to send alerts for high CPU usage. I want to create another instance and use this instance for the database and keep my existing instance for the web ...
0
votes
1answer
42 views

Simplify launching an EC2 instance with a given configuration

Is there any way to create a link or "saved profile" for launching an EC2 instance with a given configuration? I'm aware of the mechanism where you can create a link to launch a given AMI, i.e. ...
0
votes
1answer
303 views

Encryption strategy for CentOS on Amazon EC2

Although there is plenty of information about how to create encrypted partitions (like http://silvexis.com/2011/11/26/encrypting-your-data-on-amazon-ec2/), there's not much information suggesting what ...
18
votes
2answers
2k views

Which AWS features are EBS backed?

I recently read an article AWS: The good, the bad and ugly, which mentioned that they've moved off of all EBS backed AWS features. What features are explicity (EBS backed EC2 instances) or implicitly ...
0
votes
1answer
229 views

Chef Integration Tasks Best Practices

I am new to chef (using hosted chef server) and am muddling along ok and basically understand how to provision individual servers. What I am having trouble with is figuring out how to integrate the ...
1
vote
3answers
2k views

How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?

How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk? I add the files to a git repository, and I push to github, but I want to ...
2
votes
2answers
555 views

How do I handle mysql replication in EC2 using private IPs?

I am trying to set up a mysql master/slave configuration in two EC2 instances. However, every time I reboot an instance, the IP address (and hostname) changes. I could assign an Elastic IP address, ...
3
votes
1answer
490 views

Using NFS for scalable PHP/MySQL web application

Here's the situation: I have a PHP/MySQL web application that accepts user uploads (pdf files). From these pdf files' pages a preview image is made on the fly and presented to the web app's users. ...
1
vote
0answers
586 views

amazon ec2-medium apache requests per second terrible

EDITED -- test running from localhost now to rule out network... i have a c1.medium using EBS. when i do an apache benchmark and i'm just printing a "hello" for the test from localhost - no database ...
0
votes
1answer
869 views

Ways to go about optimizing website performance WordPress, Amazon EC2 Apache and RDS MySQL

I have 6 WordPress websites running on 1 single EC2 instance. All the the websites are connecting to databases in 1 same RDS instance. Earlier today, traffic to the largest website peaked and the ...
0
votes
2answers
792 views

Amazon EC2 - how to determine how busy each CPU is

I have an Amazon EC2 micro instance. I believe that this is 1 core (or 2 for periodic bursts) with 4 CPU's. I'm getting confused with the terminology (ECU vs CPU vs Core) but really I would like to ...
5
votes
3answers
1k views

Move /var directories to to /mnt on an EC2 instance

I am trying to work on a standard configuration for a set of EC2 instances running ubuntu 12.04. These servers are going to be primarily web servers for a Ruby on Rails application. When you configure ...
6
votes
1answer
4k views

strongSwan IPsec server with AWS EC2 VPC VPN client

I'm trying to create a VPN tunnel between 2 AWS regions. The way I'm trying to do this is by setting up a IPsec server in Linux with strongSwan in one region, and then a VPC VPN in the other region. ...
2
votes
1answer
353 views

EC2 instance keeps respawning, even after termination

A quite annoying EC2 instance keeps respawning, no matter how many times I try to delete or terminate it. What could be the cause of this? How can I finally get rid of this Micro testing instance?
2
votes
1answer
4k views

AWS service to setup port forwarding from Elastic IP to EC2 instances

Is there an AWS service (rather than creating an instance, and doing something via iptables?) that will allow me to use the API to set up port forwarding from a single Elastic IP address, onto ...
4
votes
2answers
1k views

HAProxy authenticated httpchk (health check)

I am using HAProxy on EC2 and using httpchk to manage node availability. I had used a pseudo-unique path as the health check route in an attempt to make sure only my servers responded to the health ...
0
votes
1answer
84 views

Clarification regarding EC2 reserved instances [closed]

I'm playing with the pricing page on AWS for EC2 instances. My understanding is you have "on-demand" which is pay as you go and then you have reserved instances where you pre pay. So coming from a VPS ...
2
votes
1answer
1k views

Chef command to create new ec2 instance with second ebs volume attached and mounted instead of the default ephemeral volume?

We currently use this command to create a new ec2 instance with chef: knife ec2 server create --node-name=prod-apache-1 --availability-zone us-east-1c --image ami-3d4ff254 --distro ubuntu12.04-gems ...