Contenu connexe
Similaire à Aws opsworks for developers and designers (20)
Aws opsworks for developers and designers
- 3. 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)
- 6. Basic Ruby + JSON
●
●
●
●
IaC
auto-provisioning
deploy ruby with ruby
fun!
- 7. Stack : region, linux distro
Layer: java, rails, nodejs, lb … etc
Instance: medium, large etc..
Apps: repo + url
- 9. {
"deploy": {
"myapp_staging": {
"database": {
"adapter": "postgresql",
"username": "myapp_staging",
"database": "myapp_staging",
"password": "supersecret"
},
"symlink_before_migrate":{
"config/application.yml" : "config/application.yml"
}
}
}
}
- 13. Custom example
{ "deploy": {
"my_fancy_app": {
"hipchat_token" : "69d2627efe8f564c1cc0b6341e3291",
"hipchat_room_id": "206231",
"hipchat_run_on" : "rails-app1",
[...]
}
}
}
- 15. Opsworks agent
● Agent runs on instances
● Listens for lifecycle events
● Lifecycle events trigger chef-solo run
- 16. 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