configure your instances using aws opsworks

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

Upload: dinhnga

Post on 03-Jan-2017

237 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Configure your instances using AWS OpsWorks

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

AWS OpsWorks

Page 2: Configure your instances using AWS OpsWorks

Abstract

Automate your CI / CD using Amazon ECS to streamline your application’s development and deployment processes, leaving the heavy lifting to AWS OpsWorks. OpsWorks will take care of the daily tasks of installing system and package updates, configuring EBS volumes or tracking the health of your ECS Cluster. Use Amazon ECS in combination with AWS OpsWorks to drive operational efficiency into your CI/CD!

Page 3: Configure your instances using AWS OpsWorks

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

Amir Golan Senior Product Manager

April 12th 2016

Managing Amazon ECS Applications with AWS OpsWorks

Page 4: Configure your instances using AWS OpsWorks

Amazon ECSContainer Management on AWS

Page 5: Configure your instances using AWS OpsWorks

Why do you need ECS?

Ø Package application code, configurations, and dependencies

Ø Deploy applications reliably and consistently

Ø Streamline cluster management q Scheduling, container management, service discovery, etc.

Ø Scaling and availability q Control node replication schemes and concurrency controls

Ø View and analyze metrics of running containers

Page 6: Configure your instances using AWS OpsWorks

How Does ECS help your CI / CD?

Ø The same container that runs on a developer’s desktop will run on

production

Ø Run independent containers with no shared dependencies (e.g. shared

library)

Ø track container versions regardless of the application (i.e. dockerfile)

Ø Existing containers don’t change and are faster to boot and scale

Page 7: Configure your instances using AWS OpsWorks

AWS OpsWorksOperate Infrastructure on AWS

Page 8: Configure your instances using AWS OpsWorks

Why do you need OpsWorks with ECS?

Ø Model and group your container applications

Ø Manage the life-­cycle of your container instances

Ø Control Access Management

Ø Monitor the health of your container instance

Ø Analyze logging information

Page 9: Configure your instances using AWS OpsWorks

Configure your instances using AWS OpsWorks

Ø Uses Chef to configure the software on the instances

Ø Associates runbooks (i.e. Chef cookbooks) with your instances

Ø Applies runbook configuration changes using life-­cycle events

Page 10: Configure your instances using AWS OpsWorks

Model your applications usingAWS OpsWorks

Page 11: Configure your instances using AWS OpsWorks
Page 12: Configure your instances using AWS OpsWorks
Page 13: Configure your instances using AWS OpsWorks
Page 14: Configure your instances using AWS OpsWorks

Manage the life-­cycle of your instances

Page 15: Configure your instances using AWS OpsWorks

Lifecycle events

Setup Configure Shut Down

Page 16: Configure your instances using AWS OpsWorks

Control Access Management

Page 17: Configure your instances using AWS OpsWorks

OpsWorks Access Management

Ø Provide IAM users full SSH and sudo privileges

Ø Provided limited access on a group level (i.e. OpsWorks stack)

Page 18: Configure your instances using AWS OpsWorks

SSH / RDP session managementØ AWS OpsWorks grants SSH access to IAM users

Page 19: Configure your instances using AWS OpsWorks

Monitor the Health Your Resources

Page 20: Configure your instances using AWS OpsWorks

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)

Page 21: Configure your instances using AWS OpsWorks

Analyze Logging Information

Page 22: Configure your instances using AWS OpsWorks

Configure your instances using AWS OpsWorks

Ø Track application logs using CloudWatch Logs

Page 23: Configure your instances using AWS OpsWorks

Amazon ECS and AWS OpsWorks

Page 24: Configure your instances using AWS OpsWorks

How to register an ECS cluster to OpsWorks?

Page 25: Configure your instances using AWS OpsWorks

What would OpsWorks do?

Ø Install Docker on the instance

Ø Installing the ECS agent on the instance

Ø Assign the instance to the ECS cluster

Page 26: Configure your instances using AWS OpsWorks

Benefits of using Amazon ECS & AWS OpsWorks

Ø Streamlined container instance scaling & provisioning

Ø Container instance operating system and package updates

Ø User permissions access management

Ø Container instance performance monitoring

Ø Amazon Elastic Block Store (Amazon EBS) volume management

Ø Public and Elastic IP address management

Ø Security Group management

Page 27: Configure your instances using AWS OpsWorks

Demo Time

Page 28: Configure your instances using AWS OpsWorks

Run Bash, Python, Ruby scripts on AWS OpsWorks

Ø "shellout" : "code" : "env x='() :;;;; echo vulnerable' bash -­c 'echo

Hello OpsJAWS!'"

Page 29: Configure your instances using AWS OpsWorks

Provide IAM Users With sudo Permissions

Ø sudo cat /etc/sudoers.d/opsworks

Page 30: Configure your instances using AWS OpsWorks

Thank You!