When managing your Windows infrastructure on AWS, you can automate operational tasks, like service discovery, software installation and configuration management. Using AWS OpsWorks, you can deploy, manage, and scale your applications running on Windows Server.
This webinar will show you how to use Chef recipes with OpsWorks to install or update software packages and security updates. You will also learn how to use OpsWorks to react to lifecycle events, such as running launch and shutdown scripts, or adapting your application's configurations.
Learning Objectives:
Understand the benefits of using OpsWorks on Windows Server applications
2. AWS OpsWorks
Model, control and automate infrastructure of
any scale or complexity
Application Management Service
No additional cost running on AWS
8. AWS Elastic Beanstalk and
AWS OpsWorks can be
controlled via
AWS CloudFormation.
AWS CloudFormation integration
OpsWorks Elastic Beanstalk
CloudFormation
15. Deep service integration with
Elastic Load Balancing
Amazon RDS
AWS CloudFormation
AWS IAM (users and profiles)
16. OpsWorks apps and deployments
You define the source of your application
Apps can be deployed manually
Apps are deployed automatically on instance boot
Set environment variables
22. Setup event
• Sent when instance boots
• Includes the deploy event
• Use for initial installation of
software & services
23. Configure event
• Sent to all instances when
any instance enters or
leaves online state
• Used for making sure the
configuration is up-to-date
24. Deploy event
• Sent when you deploy via
UI/API; part of each setup.
• Used for custom
deployment
25. Undeploy event
• Sent via UI/API when apps
are deleted
• Used to remove apps from
running instances
26. Shutdown event
• Sent when an instance
is shut down
• Specify shutdown timeout
• Used for clean shutdown
27. Example event on a Stack
Setup Configure Deploy Undeploy Shutdown
Reverse
Proxy
(cache)
Install and
configure
IIS
Sync app
server IPs
- -
Drain
connections
.Net App
Server
Install app
server
Updates DB
IP
& restart
Updates
app
Removes
app
Ship logs
Database
Install
database
Sync DB
ACLs
- - Make backup
35. Lifecycle Events trigger Chef runs
The OpsWorks agents controls the Chef client on
the instance
The agent keeps your Cookbooks on the instance
up to date
Each Lifecycle event contains list of recipes to run
All Lifecycle Events can be triggered manually
You can also run single recipes
36. Stack information
OpsWorks tracks the Stack state
This information is accessible in your recipes
Use Chef search to access information like the list
of all nodes (instances) in your Stack or Layer
nodes = search(:aws_opsworks_instance, "hostname:db-slave*")
nodes.each do |node|
... node[:private_dns]
end
38. Conclusion
OpsWorks let you group your projects in logical
units (Stacks and Layers)
It automates setup of instances through Chef and
Lifecycle Events
It gives you operational tooling like user
management