amazon-ec2

How can I script an alert for when my Amazon Web Service usage goes above a certain amount?

We're using S3, SimpleDB and SQS on quite a complicated project. I'd like to be able to automatically track their usage, to be sure we don't suddenly spend large amounts of money when we didn't intend to (perhaps because of a bug). Is there a way of reading the usage figures of all Amazon Web Services and/or the current real time dolla...

AWS EC2 Instance is gone after reboot when ssl certificate is bound to website

I have gone many hours trying to get this working........ Here are my specs: -Windows server 2008 (installed IIS7 after initial AMI) -Sql server 2005 Standard (Installed registered copy) -.NET Framework 3.5 (website with SSL needed) Any instance from my most current AMI with everything installed and the website running will reboo...

Amazon EC2 Load Balancer: Defending against DoS attack?

We usually blacklist IPs address with iptables. But in Amazon EC2, if a connection goes through the Elastic Load Balancer, the remote address will be replaced by the load balancer's address, rendering iptables useless. In the case for HTTP, apparently the only way to find out the real remote address is to look at the HTTP header HTTP_X_F...

Managing server instance identity on EC2

I recently brought up a cluster on EC2, and I felt like I had to invent a lot of things. I'm wondering what kinds of tools, patterns, ideas are out there for how to deal with this. Some context: I had 3 different kinds of servers, so first I created AMIs for each of them. The first AMI had zookeeper, so step one in deploying the syst...

Auto Shutdown and Start Amazon EC2 Instance

Can I automatically start and terminate my Amazon instance using Amazon API? Can you please describe how this can be done? I ideally need to start the instance and stop the instance at specified time intervals every day. ...

Keeping access to a Fedora Amazon EC2 instance

Hej, I runned a Fedora instance in Amazon EC2. I can access and work on it perfectly by Putty. I also set Seconds between keepalives to 1 for not losing the connection due to inactivy (I mean in Putty). Nevertheless, if a network/electric failure happens in my local computer, it shuts down the Putty connection, so the session logs off...

MySQL in AWS EC2 - How does it scale?

When you move beyond using one instance for your database, what is the best practice when using EC2? If the first instance is a master and you're spinning up slaves, they would need to scan the transaction log and bring themselves up to date before the slaves are useable correct? If the master had been running awhile and was busy, this...

Who are using all the memory on my production server(apache + mysql + rails) ?

I am running a EC2 small instance as my production server. It has 1.7G memory. I noticed it uses almost all memory. However when I check top output, it looks like that only 30% is actually used. Did I misread the top output? Here is the top output (sorted by %MEM) top - 21:33:15 up 141 days, 9:39, 2 users, load average: 0.00, 0.00,...

What's the best way to serve images across a cluster in Amazon Cloud?

We want to be able to have a folder that can securely serve images across a cluster of web servers. What's the best way to handle this in the Amazon Cloud? S3? EBS? Cloudfront? ...

EC2- Booting from an EBS snapshot and then detaching the volume to reduce costs

I would like to boot from an EBS snapshot for convenience but then I would like to detach the volume after launch so I don't have to pay for it. Is this possible? ...

EC2 - taking an EBS snapshot, saving to S3, and then launching instances from S3

I like the convenience of taking an AMI snapshot - but ideally I do no want to pay for the volume to be attached to my running instance. Is there a way to save a snapshot instance to S3 and then launch from S3 without attaching a volume to the running instance - gaining the convenience of snapshots - without the running costs? ...

"Unable to associated Elastic IP with cluster" in Eclipse Plugin Tutorial

Hi all, I am currently trying to evaluate AWS for my company and was trying to follow the tutorials on the web. http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2241 However I get the below error during startup of the server instance: Unable to associated Elastic IP with cluster: Unable to detect that the Elastic IP...

Grails Deployment - Fastest way to get deployed?

Hi All, If anyone has or is running a Grails application on their server I would appreciate some details on where to go after creating the WAR. Background I chose grails because with Google App Engine and the App Engine Plugin deployment should have been trivial. This issue is that there is a bug which makes any application pretty muc...

Where can i find a EC2 Oracle database 11gR2 AMI?

Does anyone know where i can find such a AMI? Oracle database Enterprise Edition 11g release 2? Has oracle supplied it somewhere or has someone else created one i can use? ...

Do I need Amazon's EC2, Cloudfront, RDS?

Hello, I want to publish a web site on Amazon's servers, that: Runs CakePHP Uses MySQL to store data Lets users upload audio through flash (currently using a hosted Flash Media Server), and listen to the files later Do I need Amazon's EC2 for the website, RDS for the MySQL database, and CloudFront for the FMS? I'd really like a walk...

How to select and AMI when creating an instance of EC2

I am using Amazon EC2 for the first time, and need to create an instance that runs Windows, MSSQL Server 2008, .Net Framework 3.5 SP1 and IIS Server 6.0. I am unable to decide what AMI (out of the huge list of community AMIs) should I choose to meet my requirements. Is there a way I can make this decision without doing trial and error. ...

How can I deploy my .NET app to Amazon EC2?

I have a .NET Windows service and a .NET Web Application that I would like to deploy to my Amazon EC2 Windows 2008 instances. At this point, all I need to do is to copy the zipped files across to the EC2 box and remote desktop to the EC2 instance and finish the deployment. In order to do this, I have tried LogMeIn Hamachi2 to create a ...

Caching Mysql database for better performance

Hi, I'm using Amazon cloud and I've performance issue since the HDD is not located on my machine. My database is small (~500MB) and I can afford to keep it all in my RAM. I do not want to keep queries in my RAM, i need all the tables there. How can i do it? Thanks, Koby P.S. I'm using ubuntu server... ...

How can I use Spring Security without sessions?

I am building a web application with Spring Security that will live on Amazon EC2 and use Amazon's Elastic Load Balancers. Unfortunately, ELB does not support sticky sessions, so I need to ensure my application works properly without sessions. So far, I have setup RememberMeServices to assign a token via a cookie, and this works fine, b...

Programmatic DNS

I'm a long time developer but not very experienced with DNS. Here's my problem: Our app launches servers on Amazon EC2 for clients. One client wants to use custom DNS's for every server launched instead of the normal long public DNS provided by AWS: for example server-5.demo.ourclient.com, server-6.demo.ourclient.com. What's the easi...