Top Banner
AWS OpsWorks Introducing AWS OpsWorks for Windows Server
42

AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Aug 12, 2015

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

AWS OpsWorksIntroducing AWS OpsWorks for Windows Server

Page 2: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

AWS OpsWorks Model, control and automate infrastructure of

any scale or complexity

Application Management Service

No additional cost running on AWS

Page 3: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Infrastructure as code Reusable Documented Versioned Tested

Page 4: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Mark RambowSoftware Development Manager

for AWS OpsWorks

Page 5: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Deployment & ManagementServices

Page 6: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Deployment & Management Services

AWS Elastic Beanstalk AWS OpsWorks AWS CloudFormation

AWS CodeDeploy AWS CodePipeline AWS CodeCommit

Page 7: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Deployment & Management Services

Convenience Control

AWS Elastic Beanstalk AWS OpsWorks AWS CloudFormation

Page 8: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

AWS Elastic Beanstalk andAWS OpsWorks can be controlled viaAWS CloudFormation.

AWS CloudFormation integration

OpsWorks Elastic Beanstalk

CloudFormation

Page 9: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

AWS CloudFormation integration

OpsWorks SQS VPC S3

CloudFormation

Page 10: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

OpsWorksCore Concepts

Page 11: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Stack

Page 12: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server
Page 13: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server
Page 14: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Demo 1 Organizing your infrastructure

Page 15: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Deep service integration with Elastic Load Balancing Amazon RDS AWS CloudFormation AWS IAM (users and profiles)

Page 16: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

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

Page 17: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Operational tooling

Streamlined provisioning Continuous configuration Manage users and permissions Manage remote desktop access (RDP) Time-based instances to manage load OpsWorks auto heals unhealthy instances

Page 18: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Demo IIUser management and remote desktop access

Page 19: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Technical Deep Dive

Page 20: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

OpsWorks architecture

OpsWorksBackend

OpsWorksAgent

EC2, EBS, EIP, VPC, ELB, Auto-Scaling, Auto-Healing On-instance execution via

CommandJSON

CommandLog+Status

Page 21: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Lifecycle Events

setup configure deploy undeploy shutdown

Page 22: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Setup event

• Sent when instance boots• Includes the deploy event• Use for initial installation of

software & services

Page 23: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Configure event

• Sent to all instances when any instance enters or leaves online state

• Used for making sure the configuration is up-to-date

Page 24: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Deploy event

• Sent when you deploy via UI/API; part of each setup.

• Used for custom deployment

Page 25: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Undeploy event

• Sent via UI/API when apps are deleted

• Used to remove apps from running instances

Page 26: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Shutdown event

• Sent when an instance is shut down

• Specify shutdown timeout• Used for clean shutdown

Page 27: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Example event on a Stack

Setup Configure Deploy Undeploy Shutdown

Reverse Proxy (cache)

Install and configure IIS

Sync appserver IPs

- -Drain connections

.Net AppServer

Install app server

Updates DB IP& restart

Updates app

Removes app

Ship logs

DatabaseInstall database

Sync DB ACLs

- - Make backup

Page 28: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Demo 3Configure Lifecycle Events

Page 29: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Configuration Management

Page 30: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Chef

Open Source Cookbooks & recipes Ruby DSL Many tutorials and

resources on the web

Page 31: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Recipe setup.rb

windows_feature 'Web-FTP-Server'

windows_package '7zip' dosource 'http://www.7-zip.org/a/7z938-x64.msi'checksum '7c8e873991c82ad9cfc123415254ea6101e9a645e12977dcd518979e50fdedf3'action :install

end

Page 32: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Chef resources

Resources describe the desired state Resources have attributes and actions

registry_key "set background color" dokey "HKCU\\Control Panel\\Colors”values [{ name: "Background",

type: :string, data: "86 63 127" }]

action :createend

Page 33: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Chef resources#apt_package, #bash, #batch, #chef_gem, #chef_handler,

#cookbook_file, #cron, #csh, #deploy, #directory, #dpkg_package,

#dsc_resource, #dsc_script, #env, #erl_call, #execute, #file,

#gem_package, #git, #group, #http_request, #ifconfig, #ips_package, #link, #log, #mount, #ohai, #perl, #portage_package,

#powershell_script, #python, #reboot, #registry_key,

#remote_directory, #remote_file, #route, #ruby, #ruby_block, #script,

#subversion, #template, #user, #windows_package,

#windows_service

Page 34: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

OpsWorks Chef integration

Page 35: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

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

Page 36: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

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

Page 37: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Demo 4IIS + Node.JS Application Example

Page 38: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

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

Page 39: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Keep in touch

@AWSOpsWorks on twitter

blogs.aws.amazon.com/application-management

Page 40: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Send us feedback

Page 41: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Send us feedback

Page 42: AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server

Thank you very much for joining the webinar today

Please give us feedback

@AWSOpsWorks