Configuration Management with AWS OpsWorks - November 2016 Webinar Series

Post on 15-Apr-2017

701 views 7 download

transcript

© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amir Golan

Senior Product Manager

AWS OpsWorksConfiguration Management on AWS

Why do you need OpsWorks?

Model and group your applications Manage the life-cycle of your instances Control Access Management Monitor the health of your resources Analyze logging information Mitigate operational problems

Configure your instances using AWS OpsWorks

Uses Chef to configure the software on the instances Chef provides a Ruby DSL abstraction for common OS operations Associates pre-defined scripts (i.e. Chef cookbooks) with your instances Applies cookbooks configuration changes using life-cycle events

Model your applications usingAWS OpsWorks

Resource Organization

Manage the life-cycle of your instances

Lifecycle Events

Setup Configure Deploy

Setup Event

Triggered every time an instance boots Used for initial installation of software packages

Deploy Event

Triggered when deploying a new software version Allows for customizable software deployments

Configure Event

Triggered on all instances upon state changes Used to assure the configuration is up-to-date

My new OpsWorks App!My new AWS OpsWorks application!

Configure event triggered

Configure event triggered

Configure event triggered

Control Access Management

OpsWorks Access Management Provide IAM users full SSH / RDP and sudo / admin privileges Provided limited access on a group level (i.e. OpsWorks stack)

SSH / RDP session managementAWS OpsWorks grants SSH / RDP access to IAM users

Temporary RDP session managementAWS OpsWorks grants temporary RDP access to IAM users

Monitor the Health Your Resources

Configure your instances using AWS OpsWorks

14 free one minute metrics (CPU, Memory, load, process count, etc.) Aggregation on the group level (OpsWorks stack, layer) CloudWatch optimized dashboards (contextual dashboards)

Analyzing Logs

Analyze your environment’s logs

Troubleshoot Chef run results Track application logs using CloudWatch Logs

Create a CI/CD Pipeline with AWS CodePipeline

AWS CodePipeline

Continuous delivery service for fast and reliable application updates

Model and visualize your software release process Builds, tests, and deploys your code every time there

is a code change Integrates with 3rd party tools and AWS

Source

SourceGitHub

Build

JenkinsOnEC2Jenkins

Deploy

JavaAppAWS OpsWorks

PipelineStageAction

Transition

CodePipelineMyApplication

Source

SourceGitHub

Build

JenkinsOnEC2Jenkins

Deploy

JavaAppAWS OpsWorks

NotifyDevelopersLambda

CodePipelineMyApplication

Parallel actions

Source

SourceGitHub

Build

JenkinsOnEC2Jenkins

Deploy

JavaAppAWS OpsWorks

NotifyDevelopersLambda

TestAPIRunscope

CodePipelineMyApplication

Sequential actions

Source Build Test Deploy

3rd Party Partners

Source Invoke Logic Deploy

AWS Elastic Beanstalk

Amazon S3

AWS CodeDeploy

AWS Lambda

AWS CodeCommit

AWS OpsWorks

AWS Service Integrations

AWS OpsWorks and AWS CodePipeline

Configure your AWS Pipeline

Update and apply AWS OpsWorks cookbooks

Deploy apps to AWS OpsWorks stacks

Build

JenkinsOnEC2Jenkins

NotifyDevelopersLambda

My AWS Application: App1 Source

App1GitHub

CookbooksAmazon S3

Beta Stage

Deploy App1AWS OpsWorks

Apply CookbooksAWS OpsWorks

How do I Get Started with OpsWorks?

Grab some community cookbookshttps://supermarket.chef.io/

Learn more https://aws.amazon.com/opsworks/

Get started https://aws.amazon.com/opsworks/https://aws.amazon.com/codepipeline/

Thank you!