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
3k 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 ...
1
vote
1answer
349 views

What would be the IP address for UDP messages for AWS instances from different regions?

I have my AWS EC2 setup in different regions, say one in Oregon, and another one in Ireland. I want to send a UDP message from Oregon to Ireland. What IP address should I use in this case? I have ...
1
vote
2answers
839 views

Problems migrating an EBS backed instance over AWS Regions

Note: I asked this question on the EC2 forums too but haven't received any love there. Hopefully the ServerFault community will be more awesome. The new AWS Sydney region opening up is something that ...
4
votes
1answer
77 views

Is it safe to publish an EC2 security group?

Is it safe to publish the security group you're launching machines on? i.e. "my box is on sg-abcdef" Are there any permissions that control who is allowed to join your SG? Worst case, it seems like a ...
3
votes
3answers
371 views

DNS: CNAME as www record

I'm considering changing the DNS www records of a domain name from an A record to a CNAME. Various questions and answers on serverfault are not as clear cut as I'd hoped. Also, many DNS checking tools ...
1
vote
1answer
744 views

File replication among EC2 instances

I am pretty new to AWS so please excuse my ignorance. We are wanting to have a setup whereby we have a SQL DB instance + web server instance. However we would like the Web server to sit behind an ELB ...
3
votes
2answers
1k views

Is it possible to update an existing EC2 security group from CloudFormation?

I have a manually created security group to access Redis, and I am creating a LAMP stack with AWS CloudFormation. I need to update the Amazon EC2 security group from Redis to allow access from this ...
3
votes
2answers
3k views

Can't start Apache - Address already in use - httpd is stopped

I'm trying to set up an Amazon EC2 web server on the "Virtual Private Cloud". I'm using this instead of a standard EC2 instance because I needed to assign multiple public IPs and that necessitates the ...
2
votes
1answer
141 views

Merely installing PHP5 causes my AWS Ubuntu server to die minutes later from a massive CPU spike

I have an AWS server with Ubuntu 11.04 as the OS that is running an Apache2 webserver (incidentally Python-based and using Django). We recently needed to add support for php5 to let us use a third ...
6
votes
3answers
8k views

Force HTTPS with AWS Elastic load balancer

I need to redirect all incoming HTTP traffic to HTTPS on my elastic load balancer. I tired using Apache mod_rewrite: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule !/...
2
votes
2answers
2k views

How can I do an SELINUX filesystem relabel without rebooting first?

I can touch the file /.autorelabel and reboot and during the initialization coming back up it will do the SELINUX relabel for me. But I want to do this in a different situation where the system has ...
3
votes
1answer
490 views

aws load balancer ssl termination implications

If I set up a load balancer on aws that terminates ssl at the load balancer, then the requests being sent to the application server is in plain text. That has definite security implications. How do ...
-4
votes
1answer
87 views

Will I be charged for creating a new (second) AMI from my currently running free-tier Amazon EBS-backed instance? [closed]

I have a running instance of an Amazon AMI instance that I've installed Node.js, modules, various updates, etc., and I would like to save a new AMI created from this instance in its current state. The ...
3
votes
1answer
2k views

Possible to join an Amazon RDS SQL Server 2008 instance to a Windows Domain?

We're planning on using an Amazon RDS MS SQL Server 2008 instance in our Amazon VPC. Since we don't have access to the underlying OS for RDS, I was wondering if it's at all possible to join an RDS ...
0
votes
2answers
1k views

Using Route 53 with EC2 Public DNS and Virtual Hosts

I would like subdomains of my EC2 Instance Public URL to point to different document trees in on my machine so foo.ec2-012-345-678-901.eu-west-1.compute.amazonaws.com has a separate DocumentRoot to ...
3
votes
1answer
2k views

Migrating to AWS Cloud with auto-scaling - where to put Redis and ElasticSearch?

I've been trying to research this topic but haven't found anywhere that recommends where to install services such as Redis and ElasticSearch when migrating to a cloud framework. I'm currently running ...
1
vote
2answers
250 views

How to update an EBS AMI's snapshot?

I have an AMI that I use for my rails web servers. This AMI using an EBS Snapshot to launch with the basics all ready for production. I now need to update some configuration settings on web servers (...
2
votes
1answer
2k views

Cross Region S3 bucket policy

I would like to allow EC2 servers based in us-east-1 to read content from a bucket in us-west-2. Every time I try I get a "The Bucket you are attempting to access must be addressed using the ...
1
vote
2answers
122 views

Given an EC2 instance with an EBS AMI, How can I update the AMI's snapshot?

on EC2 my app servers are running the same EBS AMI. How can I update this AMI's snapshot to contain the latest configuration settings and site code? I can only find tutorials that talk about creating ...
0
votes
2answers
525 views

Creating a local database instance from the RDS snapshot

I am running a AWS RDS large instance for the production. I am taking mysqldumps everyday at mid-night. But it take too long to take the mysql dump and the website does not respond during the mysql ...
1
vote
2answers
2k views

SSH broken after homedir permissions and hostname change on EC2-hosted Ubuntu

I changed my instance's hostname using the hostname utility and then set it in /etc/hostname so that the new name survives reboot. My main motivation was for differentiating between instances at the ...
1
vote
1answer
1k views

Sending email from an AWS domain via Google Apps

I have a domain managed via Amazon's Route53 service. I have a Google Apps (free) account with 10 full users. To facilitate more than 10 users (we need about 12-14), I've been using a setup whereby ...
5
votes
4answers
9k 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 ...
1
vote
1answer
92 views

backup aws ec2 to separate account

I want to backup my AWS snapshots to a completely separate AWS account for additional security (if my AWS credentials were acquired someone could delete all my snapshots and volumes). But I'm a bit ...
0
votes
2answers
860 views

Amazon blocked port 80 and 443 on my instance

Amazon AWS sent me an email about warning that my instance have been behaving like Phising that is against AWS Customer Agreement. And they noticed that they blocked port 80 and 443 which are for ...
0
votes
1answer
2k views

Getting a chef node to re-register a new identity with the server

I'm using chef-server to manage resources deployed on AWS. But when I want a new node, I don't like waiting the 30+ minutes it takes for a full chef run to install everything. So I've created an AMI ...
1
vote
1answer
2k views

GitHub push to AWS Elastic Beanstalk

I am using GitHub for code management. I am using Amazon AWS Elastic Beanstalk as a server. Amazon announced that you can use Git to push code to the application server. However, to do this I'd have ...
3
votes
1answer
527 views

Simple S3 -> Glacier Backup

I'm looking to backup a few terabytes of data in our S3 buckets to Amazon Glacier. I've seen the options for "automatic archival" of S3 -> Glacier, but I'd rather it just be a simple one time dump (...
7
votes
2answers
3k views

AWS VPC - why have a private subnet at all?

In Amazon VPC, the VPC creation wizard allows one to create a single "public subnet" or have the wizard create a "public subnet" and a "private subnet". Initially, the public and private subnet ...
0
votes
1answer
727 views

Error while trying to unrar

unrar: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory Both rar & unrar are in the /bin folder I followed this tutorial: http://...
8
votes
3answers
3k 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 ...
8
votes
6answers
24k 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 EBS-...
0
votes
2answers
103 views

Ubuntu web server cluster checks Ubuntu repository for script updates with cron

I have a cluster of Ubuntu 12.04 web servers running a lamp stack. All of these servers are connected to a Load Balancer on Amazon Web Services. What I want to be able to do is have a dedicated ...
0
votes
2answers
1k views

High latency issue for web service call from amazon aws ec2 to local server

We have a legacy web application that is running in our data center on premises located in Houston. We have a developed a new .net 4 based web application in order to provide new features to customers....
1
vote
2answers
262 views

AWS EC2: how to compute the cost

i'm new to AWS, i'm using the free right not and it's terrific. Now, in 1yr the free expires. i went to the website http://aws.amazon.com/ec2/pricing/ where the pricing is but i didn't really get how ...
1
vote
1answer
278 views

Map EC2 Elastic IP to VPC Elastic IP

My DNS points to an EC2 Elastic IP and I want to start using a new VPC Elastic IP instead. Is it possible to route the EC2 Elastic IP to the new VPC Elastic IP within AWS such that when I update the ...
1
vote
1answer
521 views

Automatically Sync Files between two Ubuntu Servers on EC2

I am running two or more Ubuntu Servers on Amazon EC2. They are all connected to an Elastic Load Balancer so all of the files on each server must be the same. Is there a way that I can just SFTP files ...
2
votes
1answer
1k views

AWS Storage Gateway without the “on-premises” part?

The use cases for the AWS Storage Gateway always seem to assume that the virtual storage gateway would be installed on-premises (i.e. local to the customer) and would then be synced to AWS. I am ...
6
votes
2answers
6k views

Assign multiple Elastic IPs to EC2 instance

When I try and associate a second Elastic IP to a small EC2 instance, the currently assigned Elastic IP is disassociated. Do I need to use a VPC?
3
votes
1answer
4k views

AWS installing mod_ssl on apache

I tried installing mod_ssl,I used this command apt-get install mod_ssl to install but I got an error saying unable to locate package mod_ssl. After executing the above command, I got below output ...
0
votes
1answer
42 views

Ubuntu Running an instance over HTTPS

I want to run one of my instance in AWS ubuntu over HTTPS.What is the options available for this ? I'm using free acoount so should I purchase a SSL from amazon or I can create my own certificate and ...
0
votes
2answers
99 views

ec2 ami device mapping

I have large ec2 Ubuntu image and I'm just looking through the devices. I noticed from the metadata that % curl http://169.254.169.254/latest/meta-data/block-device-mapping/ami sda1 % curl http://...
3
votes
1answer
659 views

Amazon Elastic Beanstalk: How do you customize a Ruby AMI?

The following article explains detailed how to create a custom Tomcat based AMI for Beanstalk. The key is running the following commands before creating your AMI: sudo -s cd /etc/init.d ./httpd ...
0
votes
1answer
59 views

Database modularity with EBS volumes

I would like to add modularity to my websites on EC2 instances by encapsulating the site files and the mysql files in their own EBS volumes. The end result that I'm going for is the ability to quickly ...
3
votes
5answers
266 views

Performance data collection for short-running, ephemeral servers

We're building a medical image processing software stack, currently hosted on various AWS resources. As part of this application, we have a handful of long-running servers (database, load balancers, ...
0
votes
1answer
110 views

How can I match an AWS account number to a key and secret

My client gave me a key and a secret to manage his EC2 things, but to make one of my AMI's available to run I have to fill in the Account Number. Is it possible to deduce the account number from the ...
4
votes
3answers
1k views

AWS ELB poor performance

We're using ELB for SSL termination. Our applications run on EC2 instances behind ELB using HTTP. We're monitoring the application response times and performance hit when going through the ELB seems ...
2
votes
1answer
581 views

Can you setup a whitelist for allowed files in Amazon CloudFront

I'm using CloudFront as a CDN, and my website as an origin for pulls. Basically, I have cdn.mydomain.com pointing over to Cloudfront, and Cloudfront pulls any requests from www.mydomain.com. However,...
0
votes
1answer
478 views

Installing munin-node in an AWS Instance running Amazon Linux

Can I use the procedure described here (http://munin-monitoring.org/wiki/LinuxInstallation) for RedHat or I need to use a different one?
0
votes
1answer
340 views

aws ec2 instance clone

I've been searching for a while for a good tutorial on how could I clone a ec2 instance at aws. I have a VM at aws which is on production, yeah, this is quite important to me so I need to make sure I ...