Amazon Web Services (AWS) delivers a set of services that together form a reliable, scalable, and inexpensive computing platform "in the cloud". If you have a question about a specific web service, consider asking on its tag, e.g., amazon-ec2.

learn more… | top users | synonyms (2)

5
votes
1answer
463 views

MongoDB Disaster Prep on AWS

I'm looking for best practice advice covering MongoDB disaster recovery within an AWS hosted environment. Our setup is fairly standard at this point, replica set of 3 servers (1 primary, 1 secondary, ...
5
votes
3answers
313 views

Automatically mount volume on EC2

There is a procedure given by Amazon to make a volume available for use that has been attached as a block device. Given that I am attaching an EBS volume that is already ready to be used, is there a ...
5
votes
1answer
292 views

Elastic Beanstalk CLI - “a float is required”

I'm trying to use the AWS Elastic Beanstalk Command Line Interface v2.5.1 on OSX to deploy a node.js application. The beanstalk application exists, with no environments. From my application ...
5
votes
3answers
2k views

How to automatically update nginx upstream server list when aws ec2 hostname changes or increases?

I want to setup autoscaling in AWS. I don't want to use Elastic Load Balancer. Autoscalling in Amazon creates EC2 instances seamlessly during demand spikes to maintain performance, and decreases ...
5
votes
1answer
245 views

How does one properly escape a leading “#” character in linux etc/environment?

I would like to store a system-wide environment variable in etc/environment on AWS Linux AMI 2013.03. In this example, I am trying to store the phrase "#hello". See the examples below. echo $control ...
5
votes
3answers
3k views

Shutting an EC2 instance down locally (on the instance)?

edit: this seems to be a problem specifically with the AMI that I am trying to shut down. Other AMIs politely shut down with the "sudo poweroff" command. The goal is for an EC2 instance to shut ...
5
votes
1answer
2k views

Assign PowerShell script to run at startup using PowerShell on Window Server 2012

I'm trying to write a PowerShell script that will run when a Windows 2012 instance is created on AWS using the configuration tools provided by AWS. My problem is that I want to change the name of ...
5
votes
1answer
365 views

Google c2dm transient 401 errors on some AWS instances

How can we figure out why we're getting occasional 401 errors from the Google c2dm push service on some AWS instances when asking c2dm to deliver a notification? This is a transient problem. All AWS ...
5
votes
2answers
2k views

Webstats for large Amazon S3/Cloudfront logs?

I'm trying to find a way to parse our Amazon S3 access logs to get some webstats. I've been trying to use AWStats 7, but I got to the point of where after day 9 of a given month it can't process any ...
5
votes
2answers
879 views

Amazon Elastic Beanstalk + Git Submodules

I'm using Amazon's Elastic Beanstalk to deploy my app via Git, and I've got submodules within my Git. Of course, when I look at the directories where the data for the submodules should be, nothing is ...
5
votes
1answer
2k views

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 ...
5
votes
2answers
3k views

Running MySQL on Amazon EC2 with EBS (Elastic Block Store) and Elastic Beanstalk

I'm new to Elastic Beanstalk, but I created an environment with a container running 64bit Amazon Linux running PHP 5.3. I want to get MySQL set up on EBS, then install phpMyAdmin and import my ...
5
votes
1answer
742 views

Convert EC2 instance to VMware workstation

How can I export one windows instance (with active directory, SQL, SharePoint) from amazon (EC2) to my local environment, and be able run it on a local VMware workstation? I have used the VMware ...
5
votes
2answers
6k views

How do you transfer AWS RDS snap shot to a different AWS account

I have an RDS database that I need to transfer a snapshot of to another AWS account. I understand there are issues being able to do this between availability zones so I'm really unsure if this is ...
5
votes
3answers
909 views

Is it possible to get a list of running processes with a Cloudwatch Alarm?

We have an EC2 instance (Ubuntu) that has a few java-based applications and lately we're getting hit with high CPU utilization spikes that trigger one of our Cloudwatch alarms. By the time we get ...
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 ...
4
votes
4answers
286 views

Windows Password Sync without using Active Directory

I have a number of Windows servers running in AWS. As the number of servers grows, managing Windows logins across all the servers has become a headache. I need some sort of password synchronizer ...
4
votes
1answer
1k views

Can't find my AWS shared AMI when trying to share with specific account

I followed the instructions to share my AMI with a specific account here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html I made sure the account number is correct, and ...
4
votes
3answers
2k views

Which aws zone to choose if website traffic will be from india only

I am going to make my website live on AWS servers and 100% of intended website audience will be from India only. As amazon offers you to get services from various zones, I was wondering is there any ...
4
votes
2answers
67 views

Should I worry about an Amazon AWS doomsday scenario?

Currently our system runs entirely inside AWS. We do rolling snapshots of our EBS and often practice running restores. What keeps me up at night is having all our eggs in one basket. Here are the ...
4
votes
1answer
3k views

How to add directives to php.ini on AWS Elastic Beanstalk?

I'd like to add these PHP settings to my Elastic Beanstalk environment: upload_max_filesize = 64M post_max_size = 64M These options cannot be set with option_settings in .ebextensions: Namespace ...
4
votes
3answers
673 views

Is it possible to audit the Amazon AWS console?

We had a situation recently where an elastic IP address assigned to a production server mysteriously became disassociated from that server. We have had this same thing happen in the past to other ...
4
votes
2answers
4k views

Can Elastic Load Balancers correctly distribute traffic to different size instances

Just been looking into Elastic Load Balancers. As I understand it they just do round robin, evenly distributing connections to the servers behind them. So what happens if you have different size ...
4
votes
3answers
2k views

Load testing sites behind an EC2 load balancer with ApacheBench

When ever I try to load test a site that is load balanced on EC2 I get the following message: ab -n 20 -c 20 http://www.somesite.com/ Benchmarking www.somesite.com (be patient)...Send request ...
4
votes
4answers
6k views

How do I change the key-pair of an AWS instance if I lost my PEM file?

I lost the pem file and deleted the key-pair under which an instance in currently running. I want to still use that server though. I created a new key pair but I don't know how to assign it to that ...
4
votes
2answers
2k views

Confused by Amazon EC2 Spot Price and On-demand price, help needed

I am a little confused by Amazon EC2 Spot price and on demand price. For example, an On-demand windows instance's price is $0.07 per hour. If I bid on the "spot requests", Do I put down price lower ...
4
votes
2answers
1k views

Chef: How do I access AWS opsworks custom json attributes on an ec2 instance?

I'd like to use a chef-shell session on an aws opsworks ec2 server so I can test some environment and instance specific code I'd like to include in a custom recipe. For example, I'd like to see the ...
4
votes
1answer
2k views

What is the difference between a plain Amazon ec2 instance and beanstalk?

I am a solo developer and the sites I'm deploying are very small, usually hobby sites and I have a few questions about the Amazon services. Is there a reason for me to use beanstalk or should I just ...
4
votes
2answers
2k views

Amazon ec2 - how to setup?

Everytime I launch a new large ec2 instance, I get 30GB of storage, Did I do something wrong? shouldn't i get 850GB? See instance type http://aws.amazon.com/ec2/instance-types/ Large Instance 7.5 ...
4
votes
2answers
3k views

PHP install on clean Amazon Linux AMI

I'm trying to get a script working to bring up new Amazon Linux EC2 instances with php55 and the Amazon PHP sdk. However, I'm running into a problem that I think is caused by PHP version conflicts. I ...
4
votes
1answer
3k views

can't find the private Ip address for my Amazon-RDS instance

i moved my Master/slave database architecture to Amazon RDS and everything works fine. But i have a slave out of the RDS service which should keep sync with the new Master server, to do so i have to ...
4
votes
2answers
628 views

Load average is greater than the number of EC2 Compute Units

On an EC2 m1.large, with an AVG CPU Utilization graph such as this: how is is possible that the load average is greater than the number of EC2 Compute Units (4) ? cat /proc/loadavg 5.78 5.57 5.44 ...
4
votes
1answer
1k views

How to create an EC2 instance with knife?

I was able to make knife access AWS by following: http://www.agileweboperations.com/amazon-ec2-instances-with-opscode-chef-using-knife Now, I get a knife command almost working: $ knife ec2 server ...
4
votes
2answers
4k views

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 ...
4
votes
4answers
3k views

Is it possible to host email and DNS on AWS

We are working towards moving our app to AWS. I have heared that email and DNS cannot be hosted on AWS, is this correct? If this correct, then what are my options?
4
votes
1answer
413 views

Latency & speed considerations between 2 servers on Amazon EC2

I'm setting up a system that consists of: 2-4 database servers 2-4 webservers (running Node.js) The webservers use the database servers heavily. Aside from connecting to the private IPs of the ...
4
votes
2answers
4k views

How should I configure my ELB health check when using NameVirtualHosts and redirecting to www?

My ELB keeps taking my instances out of service, because the HTTP health check is failing. We have a DNS wildcard, and redirect everything to www: vhost.conf: ServerName www.example.com ServerAlias ...
4
votes
2answers
2k views

What happens when you reboot an instance store based Amazon EC2 instance?

I have an EC2 instance, with instance store root device (i.e., not EBS), running Linux (Ubuntu). What happens if I restart the instance like so: sudo reboot Will the instance storage still be ...
4
votes
1answer
661 views

why does and EBS volumes mounted in an Ubuntu 12.04 EC2 instance as /dev/sdh1 appear as /dev/xvdh1?

When mounting an EBS volume on ubuntu specified as /dev/sdh1 it actually mounts it at /dev/xvdh1. The aws console still thinks it's mounted at /dev/sdh1 so it took a while to realize that it was ...
4
votes
4answers
3k views

How can I automatically cycle a new image in an AWS Auto Scaling Group?

I have a web application setup with a load balancer and auto scaling group to manage scaling. The source code is in a git repository so I don't have to update the images when the code changes, but ...
4
votes
2answers
2k views

Instance's deployment / post configuration for AWS Elastic Beanstalk

I am using AWS Elastic Beanstalk, it is easy to start with deploying Java based web app, which is great. However, I want to install Memcached on every instance locally so they can be used for ...
4
votes
1answer
1k views

How to programmatically migrate an EC2 EBS AMI to other regions?

Before EBS based AMIs were available, it was possible to use the command ec2-migrate-image in order to migrate AMIs to different regions. Is there a simple way to do the same for EBS based AMIs? ...
4
votes
2answers
6k views

How do I access my public DNS on Amazon's EC2

I'm working with Amazon's EC2 for the first time. I went through all of the steps at http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/ and now I'm trying to access the public DNS ...
4
votes
2answers
192 views

Does Cloud Computing COST a premium? (or is it competitive with shared/managed/co-location)

Since cloud solutions (Google AppEngine, Amazon, etc.) do more for you, at the end of the day do they cost significantly more than doing it "yourself" with co-location hosting, etc. Not just ...
4
votes
2answers
44 views

ec2 instance showing garbled name root ebs duplicate

I'm following the introduction instructions here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html When I add an EBS volume, I see something garbled when checking on the EC2 ...
4
votes
1answer
976 views

Classic RDS from VPC EC2s

My old RDS instance is deployed in "Classic," not VPC. I have a new VPC with some EC2 instances in it, but I can't connect from these VPC EC2 instances to the RDS instance. Security Groups from ...
4
votes
3answers
584 views

Can't SSH into Amazon EC2

This is my first Amazon EC2 instance but I'm having a hard time and google can't help me out. These are the steps I have taken: Generate a keypair called aws Download aws.pem and put in my ...
4
votes
3answers
7k views

Amazon VPC and using OpenVPN

I'm not interested in having all of my EC2 instances having a public IP on their network interface. I want to have full access over what boxes can speak directly to the Internet and which can be ...
4
votes
1answer
578 views

Is it possible to obtain a copy of Amazon Linux for use outside AWS

How difficult (if at all possible) would it be run a copy of Amazon Linux on a private physical server or hypervisor (Virtualbox/KVM) ? (I am thinking something based in a office/home) I realise it ...
4
votes
3answers
2k views

Multiple domains on Amazon AWS EC2

I am a bit confused on how I can use Amazon AWS to host multiple websites. I under stand how to host a website on there however I am only allowed up to 5 elastic ip addresses. So how would I host more ...