Advertisement
Advertisement

More Related Content

Similar to Aws opsworks for developers and designers(20)

Advertisement

Aws opsworks for developers and designers

  1. AWS Opsworks for developers (and designers :) ) Wojciech Ziniewicz @fribulusxax
  2. Historia ● ● ● Capistrano UI + users ● ● ● Capistrano Nice UI Event based deployment Chef EC2 support Scaling ● ● ● ● ● chef +11.4 +vpc +ruby 2.0 +resources (EIPs + EBS api)
  3. AWS Opsworks ● ● ● ● ● ● Identity and Access Management (IAM) EC2 Chef Layer templates Custom stuff UI
  4. Secret wisdom
  5. Basic Ruby + JSON ● ● ● ● IaC auto-provisioning deploy ruby with ruby fun!
  6. Stack : region, linux distro Layer: java, rails, nodejs, lb … etc Instance: medium, large etc.. Apps: repo + url
  7. + + = JSON
  8. { "deploy": { "myapp_staging": { "database": { "adapter": "postgresql", "username": "myapp_staging", "database": "myapp_staging", "password": "supersecret" }, "symlink_before_migrate":{ "config/application.yml" : "config/application.yml" } } } }
  9. Instances lifecycle events ● ● ● ● ● Setup Configure Deploy Undeploy Shutdown
  10. Built-in (~20 cookbooks) Każdy lifecycle event ma “podpięte” recepty chefa
  11. Custom recipes (1k+ cookbooks?)
  12. Custom example { "deploy": { "my_fancy_app": { "hipchat_token" : "69d2627efe8f564c1cc0b6341e3291", "hipchat_room_id": "206231", "hipchat_run_on" : "rails-app1", [...] } } }
  13. Custom example
  14. Opsworks agent ● Agent runs on instances ● Listens for lifecycle events ● Lifecycle events trigger chef-solo run
  15. Let’s sum up 1. 2. 3. 4. User sets stack environment json (aws) User produces lifecycle events (e.g. deploy) Agent consumes events (ec2 instance) Agent runs cookbooks against previously set json
  16. Autoscaling Idempotent recipes + Lack of persistent storage = Auto provisioning && Autoscaling
  17. Addons - resources - permissions - monitoring
  18. Dziekuję za uwagę - pytania? Köszönöm a figyelmet - kérdése?
Advertisement