6 ms·
That's a somewhat difficult questions to answer, and it depends on which aspect of EC2 you're interested in. EC2 isn't really a thing for which there are tutori
by evanlivingston 14y ago
That's a somewhat difficult questions to answer, and it depends on which aspect of EC2 you're interested in. EC2 isn't really a thing for which there are tutorials because EC2 is essentially a server to rent, It's how you use EC2, and there's hardly a standard for that currently. I think the more important thing is to become familiar with the Amazon Web Services (AWS) as a whole, of which EC2 is only a part. There are some AWS SDK's which I find wildly helpful. Here's the docs for the php sdk http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#i=AmazonEC2 http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#i=Ama...
following other people companies who are using AWS can be a great way discover ways of using AWS. Netflix operates a great blog. http://techblog.netflix.com/ http://techblog.netflix.com/
If you're interested in in just renting a server, and putting Wordpress on it, there are tutorials for that, and you'll have to deal with setting up a web server, domain name etc... But perhaps you're interested in learning about how build out a scalable protein folding cluster, and the set of challenges will be completely different. AWS only provides the hardware and you must create whatever you wish to implement.
- jamalkhan 14y agoHi, I am trying to port some of my Rails and Node.js projects from my computer / Github. So essentially setting up instances and running the respective webservers on these EC2 instances.
- DrJ 14y agoHeroku might be what you need if you don't want to work on setting up all the server side details.
- grannyg00se 14y agoPerhaps you desire the additional control and complexity that managing your own instances offers. If that is not the case, maybe try something like Heroku.
- jeffbarr 14y agoAWS Elastic Beanstalk (http://aws.amazon.com/elasticbeanstalk/ http://aws.amazon.com/elasticbeanstalk/) will make this easy.
- rgarcia 14y agoAFAIK Beanstalk doesn't support node...is this in the works?
- Terretta 14y agoKeep learning Rails and node. Let AWS set the servers up for you! That's sort of the point after all. AWS can build your stack (DNS, servers, DB, LB, etc) for you using "Cloud Formation": http://aws.amazon.com/cloudformation/aws-cloudformation-templates/ http://aws.amazon.com/cloudformation/aws-cloudformation-temp... Look at "Application Framework Examples" and the templates for "A simple Ruby on Rails "Hello World" application" to start. You can build your whole stack with a single click. Later on, if you decide you want to be devops instead of dev, you can learn about how these templates were written. Go here to roll your own: http://aws.amazon.com/cloudformation/aws-cloudformation-articles-and-tutorials/ http://aws.amazon.com/cloudformation/aws-cloudformation-arti...
- spartango 14y agoNot to discourage you from playing with EC2--it's awesome and useful--but if you just want to spin up Rails or Node.js apps quickly, it may be easiest and most convenient to use Heroku[1]. They run on EC2 and manage load balancing, web-server setup, (some) databases for you. All you do is push from your git repo to their endpoint, and they take care of the staging and deploy for you. EC2 itself just provides blank virtual machines and gives you full control over them. At a high-level, you'll be setting up your web server and db, pulling your application code, and running it. It's really not too dissimilar from setting up your app on your local machine. The complexity around EC2 comes from the need to scale an application. Then you'll want to add load-balancers and more instances. While you can add these by the GUI console, you'll want to learn to use the EC2 Command Line tools[2] or the API via a library like Boto[3]. You may want to look through Amazon's suggested architectures to understand how to put these tools into play[4]. [1] http://www.heroku.com http://www.heroku.com [2] http://aws.amazon.com/developertools/351 http://aws.amazon.com/developertools/351 [3] https://github.com/boto/boto https://github.com/boto/boto [4] http://aws.amazon.com/architecture/ http://aws.amazon.com/architecture/
- manaslutech 14y agoYes, heroku will be a good option as you don't have to worry about web server, db and other setup. If you are a one man team bootstrapping your startup or project, heroku will save you a lot of time. On top of that, you can start free and later on worry about paying and scaling. I recommend to use beanstalk for git private repository instead of github that only provides free public one.