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.
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 ...
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.
There are three deployment types: rolling update, blue/green, and external.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With