aws opsworks for developers and designers

19
AWS Opsworks for developers (and designers :) ) Wojciech Ziniewicz @fribulusxax

Upload: wojciech-ziniewicz

Post on 08-May-2015

1.637 views

Category:

Technology


0 download

DESCRIPTION

Is AWS Opsworks something that a designer or a developer can do?

TRANSCRIPT

Page 1: Aws opsworks for developers and designers

AWS Opsworksfor developers (and designers :) )

Wojciech Ziniewicz @fribulusxax

Page 2: Aws opsworks for developers and designers
Page 3: Aws opsworks for developers and designers

Capistrano UI + users

● Capistrano● Nice UI● Event based

deployment● Chef● EC2 support● Scaling

● chef +11.4● +vpc● +ruby 2.0● +resources (EIPs + EBS api)●

Historia

Page 4: Aws opsworks for developers and designers

AWS Opsworks

● Identity and Access Management (IAM)● EC2● Chef● Layer templates● Custom stuff● UI

Page 5: Aws opsworks for developers and designers

Secret wisdom

Page 6: Aws opsworks for developers and designers

Basic Ruby + JSON

● IaC● auto-provisioning● deploy ruby with ruby● fun!

Page 7: Aws opsworks for developers and designers

Stack : region, linux distro

Layer: java, rails, nodejs, lb … etcInstance: medium, large etc..

Apps: repo + url

Page 8: Aws opsworks for developers and designers

JSON+ + =

Page 9: Aws opsworks for developers and designers

{"deploy": { "myapp_staging": { "database": { "adapter": "postgresql", "username": "myapp_staging", "database": "myapp_staging", "password": "supersecret" }, "symlink_before_migrate":{ "config/application.yml" : "config/application.yml" } } }}

Page 10: Aws opsworks for developers and designers

Instances lifecycle events

● Setup● Configure● Deploy● Undeploy● Shutdown

Page 11: Aws opsworks for developers and designers

Built-in (~20 cookbooks)

Każdy lifecycle event ma “podpięte”recepty chefa

Page 12: Aws opsworks for developers and designers

Custom recipes (1k+ cookbooks?)

Page 13: Aws opsworks for developers and designers

Custom example{ "deploy": { "my_fancy_app": {

"hipchat_token" : "69d2627efe8f564c1cc0b6341e3291",

"hipchat_room_id": "206231",

"hipchat_run_on" : "rails-app1",

[...]

}

}

}

Page 14: Aws opsworks for developers and designers

Custom example

Page 15: Aws opsworks for developers and designers

Opsworks agent

● Agent runs on instances● Listens for lifecycle events● Lifecycle events trigger chef-solo run

Page 16: Aws opsworks for developers and designers

Let’s sum up

1. User sets stack environment json (aws)2. User produces lifecycle events (e.g. deploy)3. Agent consumes events (ec2 instance)4. Agent runs cookbooks against previously set

json

Page 17: Aws opsworks for developers and designers

Autoscaling

Idempotent recipes +

Lack of persistent storage=

Auto provisioning && Autoscaling

Page 18: Aws opsworks for developers and designers

Addons

- resources- permissions- monitoring

Page 19: Aws opsworks for developers and designers

Dziekuję za uwagę - pytania?

Köszönöm a figyelmet - kérdése?