A AWS provê um ambiente para facilitar o gerenciamento de blue/green deployments com um bom custo-benefício e baixo risco. Aprenda como a AWS pode ajudar na automação de blue/green deployments de sua aplicação utilizando o serviço Elastic Beanstalk. Esta apresentação incluirá tópicos que definem como o AWS Elastic Beanstalk funciona e o apresentador irá fazer um demo com um blue/green deployment ao vivo em um ambiente web recém criado utilizando o próprio serviço.
2. Amazon Web Services Technical Trainer;
@cloudlopes;
(log nerd AND DevOp AND Technical Trainer
@ AWS AND Philosopher) AND (daddy);
freitasr+tdc@amazon.com;
http://1ton.rafalop.es;
http://rafalop.es/work.
Who am I?
3. MK33BR2015
33% de desconto em treinamento presencial em 2015;
Se mudar de 33 para um número maior não adianta;
Se mudar de 2015 para 2016 também não :/
Voucher especial de descontos (pode deve tirar foto)
4. Benefit from economies of scale;
Growth, Ability to quickly scale in and out;
Stop spending with physical infrastructure, giving yourself
more time to focus on your business;
Stop guessing capacity, it’s all about elastic things;
Go global in minutes;
Trade capital expense for variable expense.
First of all, why Cloud Computing?
5. Real on-demand promise, hour is your billing time unit;
The Free Tier;
Community, support, official trainings with certifications,
webinars, forums, high dissemination, big companies are
using;
Reliability, lots of 9’s around;
Documented API’s everywhere and CLI;
Integration…
Ok, got Cloud. But why AWS?
9. Manually configure AWS products (that’s the easiest part);
Update (and maintain) OS packages;
Download app packages (and configure them);
Configure Web Server (bindings, htdocs, bla bla bla);
Deployment (find an automated solution);
Monitoring;
Backups, scaling, SysAdmin jobs …
Configuring an ordinary Web server …
10. Energy to code?
What about your customers?
And the competitors?
Time’s running out. Is it ready?
Repeatedly, this causes fatigue.
Very fatigue and boring …
13. Every DevOps’ dream!;
High Level Application/Environment management service,
orchestration tool;
Deploy and manage your applications in AWS Cloud;
“Easy to begin, Impossible to outgrow”;
Install and maintain AWS services for you;
You are always in control, it’s not PaaS by definition.
What Elastic Beanstalk is ?
14. Overall:
The Beanstalk way
Amazon Elastic Beanstalk - simple workflow diagram
Create
Application
Upload
Version
Launch
Environment
Manage
Environment
update app version
(same environment)
deploy new version
(same environment)
16. What is Beanstalk doing right now ?
New Beanstalk
Application
you
“next…
next…
launch.”
Route53 (AWS account)
myapp.elasticbeanstalk.com
60s TTL
17. Under the hood
Cloud Formation
(where magic
happens)
New Beanstalk
Applicationyou
“next…
next…
launch.”
AWS Cloud Formation
JSON-formatted text
Route53 (AWS account)
myapp.elasticbeanstalk.com
60s TTL
18. What if it fails in the middle ?
Cloud Formation
Template
New Beanstalk
Application
or Environment
you
“next…
next…
launch.”
AWS Cloud Formation
JSON-formatted text
FAILED
AWS Cloud Formation
(web Console or API)
what was
wrong?
get logs from
deleted stacks
delete
app/env
21. Easy and simple to use and maintain;
Save your time;
Don’t worry about the infrastructure under the hood;
Fits from small/simple to large/complex applications;
Scaled by default;
Eclipse/VisualStudio Toolkit;
Zero downtime deployment (killer feature!).
Where does Beanstalk really shine ?
22. URL swapping:
Zero downtime deployment
your
Route 53
mywebsite.com
(CNAME)
myapp.elasticbeanstalk.com
myapp.elasticbeanstalk.com myapp2.elasticbeanstalk.com
v1.0 v1.1
load saved
environment
then deploy
60s TTL
(where the “zero downtime” magic happens)
23. Changes should be done in Beanstalk, not in
automated parts;
Don’t manually change OS files (unless you know what
you’re doing);
Be careful with URL swapping if you use old JVM’s.
If you are not using your application or environment,
don’t forget to terminate it;
Keep an eye on it !
24. No additional charges for using AWS Elastic Beanstalk;
You only pay for the underlying AWS resources that
your application consumes (AWS automatically sign
you up for these services);
Free Tier…
What much does it cost?