Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying to Amazon EC2

Has anyone got much experience deploying applications to Amazons EC2? I am considering doing this in future and wonder about peoples experiences compared to shared hosting and dedicated server hosting are.

like image 844
Craig Avatar asked Oct 20 '08 21:10

Craig


People also ask

What is deployment part of AWS EC2?

Deployment components on an EC2/on-premises compute platformDeployment workflow on an EC2/on-premises compute platformSetting up instancesUploading your application revisionCreating your application and deployment groupsDeploying your application revisionUpdating your applicationStopped and failed deployments ...

Is EC2 used for deployment?

Deployments that use the EC2/On-Premises compute platform manage the way in which traffic is directed to instances by using an in-place or blue/green deployment type. For more information, see Overview of CodeDeploy deployment types.

What are the 3 full deployment modes that can be used for AWS?

There are three deployment types: rolling update, blue/green, and external.

What is meant by deployment in AWS?

In an AWS Lambda deployment, a deployment group defines a set of AWS CodeDeploy configurations for future serverless Lambda deployment to the group, like alarms and rollbacks. You can define multiple deployment groups for an application such as staging and production.


2 Answers

So far, so good. Being able to turn on 5/10/50/100+ machines at a time is awesome. It's even better being able to turn them off and forget about them. You need to change your mindset about how you store your persistent data, but once you have the sky is the limit.

Performance wise, small instances are slow. They're fine for load balancers and serving static content, etc, but if you are doing anything processor intensive, you need at least a m1.medium instance.

It's all pretty new, so there aren't many tools to help out yet. I'm using Puppet to configure my hosts and I have a set of PHP scripts for starting up clusters. I use LDAP as a host inventory database.

If you don't have the need/urge to build your own, see Rightscale for some really awesome tools for deploying/growing apps.

like image 141
Gary Richardson Avatar answered Oct 04 '22 20:10

Gary Richardson


One approach is to setup your instance exactly how you want it locally, using a VMWare image which is then converted to AMI. For example, using this script

like image 36
Chris Avatar answered Oct 04 '22 20:10

Chris