AWS EC2 Elastic Beanstalk

今天在学如何使用Elastic Beanstalk。。。发现amazon AWS 单独成为一堂课都够了。。。说实话,又贵又难用!

Elastic Beanstalk可以理解为一个Folder,里面装着deployable code for a web application. 在Elastic Beanstalk, 一个application version 表示一个版本的代码, AWS上可以upload许多个版本的application来测试差异。

“When you create an environment, AWS Elastic Beanstalk prompts you to provide two AWS Identity and Access Management (IAM) roles, a service role and an instance profile。

用EB cli来创立一个环境running a sample application.

The best way to get a properly configured service role and instance profile is to create an environment running a sample application in the Elastic Beanstalk console or by using the Elastic Beanstalk Command Line Interface (EB CLI). When you create an environment, the clients create the required roles and assign them managed policies that include all of the necessary permissions.”


http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html

这个链接是一个Tutorial of python Django website的deployment。


EB cli tutorial: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html

概括就是: eb create environment, eb init, 选择时区, 提供access id& secret key


An application in Elastic Beanstalk is a resource that contains a set of application versions (source), environments, and saved configurations that are associated with a single web application. Each time you deploy your source code to Elastic Beanstalk using the EB CLI, a new application version is created and added to the list.


Select a platform that matches the language or framework that your web application is developed in.  看你网站用什么语言写的

你可能感兴趣的:(AWS EC2 Elastic Beanstalk)