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

On AWS do I have to open ports in an EC2 instance's firewall as well as security group?

If I change my SSH port from 22 to 23453, I can no longer ssh in. In more detail, I'm using a Red Hat EC2 instance on Amazon Web Services. This is the second change I've on a fresh install (first ...
5
votes
3answers
8k views

Configure BIND with database backend and DLZ support

Decided to move my windows based DNS servers to linux. The problem is I need to be able to dynamically update zone files without having to restart bind. It seems the most popular solution is to ...
5
votes
2answers
578 views

Is it feasible/common for people to use only AWS to host PHP/MySQL websites?

What are the drawbacks/limitations when compared to a more traditional managed shared/virtual/dedicated host?
5
votes
2answers
6k views

Could not call sign: Could not find certificate request for puppet

I'm getting started with puppet on ec2 using the following guide. https://help.ubuntu.com/12.04/serverguide/puppet.html In the very last step when I try to sign the puppet client from the puppet ...
5
votes
2answers
1k views

Load Balancing on Amazon (AWS) and staying up to date

I would like to have a load balancer for my site and have the site up to date. The load balancer will take the AMI I select and spin up more of those instances when processing power hits a certain ...
5
votes
4answers
1k views

Best Amazon AWS region for Australian website?

What is the best Amazon AWS region to host a website for an Australian audience? Amazon's marketing material seems to suggest that Singapore is the best place, but the ping tests I've performed have ...
5
votes
4answers
1k views

Multiple AWS instances and one database

I have a web app that lives on two AWS instances - one instance hosts the site, and the other hosts the actual database (MySQL). The instance hosting the site has an elastic IP pointing to it, which ...
5
votes
1answer
562 views

Lost passwordless sudo and no root access

I have a running AWS vm. The only access I have is using the ssh key (.pem file) to log in as ec2-user which is an unprivileged user. From there, I could user the sudo command without a password. ...
5
votes
2answers
9k views

opening port 80 on Ubuntu AWS

I'm running a tomcat server on an ubuntu machine hosted in an AWS instance. I can reach the server via public_ip:8080 but when i change the listening port on server.xml from 8080 to 80 connection is ...
5
votes
1answer
4k views

How to export a hosted zone in AWS Route 53?

I see no option to export a backup of the settings for a domain. Maybe I should save the results of public DNS with dig but I would question whether a friend knows a better way.
5
votes
3answers
2k views

Amazon AWS EC2 + Puppet, get Puppet to know AWS instance tags

I am having a problem with my AWS deployment, fairly new to AWS and Puppet. So coming to my question - can you distinguish puppet nodes with AWS machine tags or CNAME domains? A little background ...
5
votes
3answers
2k views

Can you require MFA for AWS IAM accounts?

Is it possible to require Multi-factor Authentication (MFA) be enabled for specific/all IAM accounts in Amazon Web Services? There are options for password requirements and it's clear how one can ...
5
votes
5answers
12k views

How to schedule automatic (daily) snapshots of AWS EC2 Windows Instance?

I have some Windows servers hosted on Amazon EC2. Some run Windows Server 2003 and other run Windows Server 2008. These are EBS-backed instances. Most of the instances also have some additional ...
5
votes
2answers
6k views

Amazon Web Services - How do I use IAM to restrict a single user to managing a single EC2 instance?

I would like to: Create an IAM user Restrict that user to be able to have full management over a single EC2 Instance only. Example: While the AWS EC2 account has 10 instances, the new user, ...
5
votes
2answers
5k views

Keep alive timeout not being respected on Amazon ELB

I'm using Tomcat 6.0.24 on Ubuntu (JDK 1.6) with an app that does Comet-style requests on an HTTPS connector (directly against Tomcat, not using APR). I'd like to set the keep-alive to 5 minutes so I ...
5
votes
5answers
4k views

AWS: Multi-region setup using single RDS instance

I'm trying to scale our web application (PHP, MySQL, memcache) in a multi-region scheme. Currently we are using a setup with two EC2 instances behind an ELB and an RDS instance, all of them in US-EAST ...
5
votes
4answers
4k views

Amazon EC2 tools for Debian?

What is the recommended way of getting command-line Amazon EC2 tools on Debian? So, basically the same as this question, but for EC2 instead of S3. Ubuntu has ec2-ami-tools and ec2-api-tools, but I ...
5
votes
2answers
3k views

What algorithm does Amazon ELB use to balance load?

I found this in the official ELB documentation By default, a load balancer routes each request independently to the application instance with the smallest load. but an article on Newvem says ...
5
votes
2answers
1k views

Which permissions/policies for IAM role to be used with CloudWatch monitoring script

With CloudWatch monitoring script (mon-put-instance-data.pl) it's possible to specify a IAM role name to provide AWS credentials (--aws-iam-role=VALUE). I'm creating a IAM role for this purpose (to ...
5
votes
1answer
4k views

What are the pros and cons of AWS Elastic Beanstalk compared with other deployment strategies?

I'm pretty new to the whole Netflix OSS stack and deployments in general. As a background for my current level of knowledge ops-wise, my main role is as a front-end application engineer. However, I ...
5
votes
3answers
833 views

Running Rails3 with force_ssl = true, with nginx, on AWS EC2 with SSL terminated by an ELB, setting up health check

I want to run my entire Rails app with SSL, so I thought to use Rails' global force_ssl config option, which works great, except that the ELB's healthchecker will never work because if I set it to ...
5
votes
2answers
1k views

EC2 Auto-Scaling with Spot and On-Demand Instances?

I'm looking to optimize the cost of our auto-scaling EC2 groups by having them launch spot instances instead of on-demand instances. What I really want is to be able to keep some servers in the group ...
5
votes
4answers
509 views

Is there a decent GUI for Amazon Route 53?

Because frankly it's a bit tricky without...
5
votes
3answers
8k views

How to create EBS based EC2 AMI from scratch?

after Amazon announced the new EBS based AMIs, I'm wondering if it is or will be possible to create new AMIs that are not based on the existing Fedora/Windows AMIs. The documentation says: The ...
5
votes
3answers
1k views

Tracking costs within one AWS account

I have what I'm sure is a very common problem. Our company has many projects and groups working for different clients. We do a lot of our development work in the cloud and deploy our solutions there. ...
5
votes
3answers
3k views

Deploy an AWS Auto Scaling groups using Chef Server

You can, for example, to deploy an an Auto Scaling groups consists of web severs, ELB and DB using AWS CloudFormation (with Chef server): ...
5
votes
2answers
730 views

Options for PCI-DSS on AWS - file integrity monitoring and intrusion detection

I need to deploy some file integrity monitoring and intrusion detections software on AWS instances. I really wanted to use OSSEC, however it does not work well in an environment where servers can ...
5
votes
2answers
2k views

Periodic spiky CPU usage by winlogon / LogonUI

I've noticed that my AWS server occasionally starts using a bunch of CPU for no particular reason, looking something like this: Observe that it does not occur at specific times, but has a very ...
5
votes
3answers
946 views

Is AWS's Elastic Load Balancer a single point of failure?

I am looking at moving our application up to Amazon Web Services. The plan is to have all of the EC2 instances mirrored across two availability zones. Due to data transfer costs, we will be staying in ...
5
votes
2answers
819 views

Aws vpc default route table in CloudFormation

Am I missing something but is there no way to add a route via CloudFormation to the default route table that comes provisioned with a VPC?
5
votes
1answer
2k views

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 ...
5
votes
3answers
204 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
279 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
1answer
209 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
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
354 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
1answer
1k views

How do you get AWS VPC EC2 instances to be able to see the AWS APIs?

We're spinning up infrastructure inside of an AWS VPC via CloudFormation. We're using auto-scaling groups to bring up VPC-EC2 instances (so, we don't bring up instances directly; ASGs manage that). ...
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
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
1answer
1k 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
2k 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
684 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
5k 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 ...
4
votes
1answer
2k 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
2answers
62 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
4answers
260 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
2answers
4k views

First attempt to migrate EC2 MySQL to Amazon RDS no going well - SUPER privileges

I've been trying to move an existing db from MySQL running on EC2 to a new Amazon RDS instance (an experiment to see if we can move across). So far, it's not going well. I'm stuck at the initial ...
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
2answers
3k 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 ...