62
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Clare Liguori Principal Software Engineer, AWS Developer Tools Improve Productivity with Continuous Integration & Delivery

Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Clare Liguori

Principal Software Engineer, AWS Developer Tools

Improve Productivity

with Continuous Integration &

Delivery

Page 2: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Agenda

• What is CI/CD?

• CI/CD in Practice: Amazon

• Using CI/CD on AWS

• Demo

Page 3: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

What is CI/CD?

Page 4: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Five Major Phases of Releasing Software

Source Build Test Deploy Monitor

Page 5: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Five Major Phases of Releasing Software

Source Build Test Deploy Monitor

• Check-in

source code

such as .java

files.

• Peer review

new code

Page 6: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Five Major Phases of Releasing Software

Source Build Test Deploy Monitor

• Check-in

source code

such as .java

files.

• Peer review

new code

• Compile code

• Unit tests

• Style

checkers

• Code metrics

• Create

container

images

Page 7: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• Integration

tests with

other systems

• Load testing

• UI tests

• Penetration

testing

Five Major Phases of Releasing Software

Source Build Test Deploy Monitor

• Check-in

source code

such as .java

files.

• Peer review

new code

• Compile code

• Unit tests

• Style

checkers

• Code metrics

• Create

container

images

Page 8: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• Integration

tests with

other systems

• Load testing

• UI tests

• Penetration

testing

Five Major Phases of Releasing Software

Source Build Test Deploy Monitor

• Check-in

source code

such as .java

files.

• Peer review

new code

• Compile code

• Unit tests

• Style

checkers

• Code metrics

• Create

container

images

• Deployment

to production

environments

Page 9: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• Integration

tests with

other systems

• Load testing

• UI tests

• Penetration

testing

Five Major Phases of Releasing Software

Source Build Test Deploy Monitor

• Check-in

source code

such as .java

files.

• Peer review

new code

• Compile code

• Unit tests

• Style

checkers

• Code metrics

• Create

container

images

• Deployment

to production

environments

• Monitor code

in production

to quickly

detect

unusual

activity or

errors

Page 10: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Release Process Levels

Source Build Test Deploy

Page 11: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Release Process Levels

Source Build Test Deploy

Continuous integration

Page 12: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Release Process Levels

Source Build Test Deploy

Continuous integration

Continuous delivery

Page 13: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Release Process Levels

Source Build Test Deploy

Continuous integration

Continuous delivery

Continuous deployment

Page 14: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Why does CI/CD matter?

440xFaster from commit

to deploy

Source: Puppet 2017 State of DevOps Report

Page 15: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Why does CI/CD matter?

Source Build Test Deploy

Continuous integration

Continuous delivery

Continuous deployment

Page 16: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Why does CI/CD matter?

440xFaster from commit

to deploy

46xMore frequent

deployments

Source: Puppet 2017 State of DevOps Report

Page 17: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Why does CI/CD matter?

Source Build Test Deploy

Continuous integration

Continuous delivery

Continuous deployment

Page 18: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Why does CI/CD matter?

5x Lower change

failure rate

440xFaster from commit

to deploy

46xMore frequent

deployments

Source: Puppet 2017 State of DevOps Report

Page 19: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Why does CI/CD matter?

Source Build Test Deploy

Continuous integration

Continuous delivery

Continuous deployment

Page 20: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Why does CI/CD matter?

5x Lower change

failure rate

440xFaster from commit

to deploy

46xMore frequent

deployments

44%More time spent on

new features and

code

Source: Puppet 2017 State of DevOps Report

Page 21: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

CI/CD in Practice: Amazon

Page 22: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Our story: We realized we were just waiting.

Wait

Write Code

Wait

Build Code

Wait

Deploy to Test

Deploy to Prod

Page 23: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Our story: We realized we were just waiting.

Wait

Write Code

Wait

Build Code

Wait

Deploy to Test

Deploy to Prod

Weeks

Mins Days Mins Days Mins Days Mins

Page 24: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Our story: We realized we were just waiting.

Automate

Write Code

Automate

Build Code

Automate

Deploy to Test

Deploy to Prod

Weeks

Mins Days Mins Days Mins Days Mins

Page 25: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Our story: We realized we were just waiting.

Automate

Write Code

Automate

Build Code

Automate

Deploy to Test

Deploy to Prod

Weeks

Mins Days Mins Days Mins Days Mins

Page 26: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Results

By 2014

• Thousands of teams across Amazon practicing

continuous delivery

• Many environments (staging, beta, production)

for many microservices

50 million deployments per

year

Page 27: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

CI/CD Best Practices of Amazon Developers

1. CI/CD is a MUST!

Page 28: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

CI/CD Best Practices of Amazon Developers

1. CI/CD is a MUST!

2. Everything is code and everything

goes into a repository

Page 29: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

CI/CD Best Practices of Amazon Developers

1. CI/CD is a MUST!

2. Everything is code and everything

goes into a repository

3. Start with continuous delivery

(“gated” promotion) and build up to

continuous deployment

Page 30: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

CI/CD Best Practices of Amazon Developers

1. CI/CD is a MUST!

2. Everything is code and everything

goes into a repository

3. Start with continuous delivery

(“gated” promotion) and build up to

continuous deployment

4. Deploy small at first, then more

broadly

Page 31: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Case Study: lululemon athletica

“Instead of taking two days to build a

production account, we can do it in

minutes using AWS CloudFormation

templates and AWS CodePipeline.”

Page 32: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Case Study: 3M Health Information Systems

“Using AWS, we’ve gone from

deployments taking six weeks to one

per week, and very soon we expect

that to be multiple deployments per

day.”

Page 33: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Using CI/CD on AWS

Page 34: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Code Services

Edit Source Build Test Deploy

Page 35: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Code Services

AWS Cloud9

Edit Source Build Test Deploy

Page 36: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Cloud9• Cloud-based integrated development

environment (IDE)

• Lets you write, run, and debug your code

with just a browser

• Share your environment with your team

to pair-program in real time

• Direct terminal access to AWS

• Provides great serverless experience:

enables local testing and preconfigures

the development environment with all

SDKs, libraries, and plugins

Page 37: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Code Services

AWS CodeCommitAWS Cloud9

Edit Source Build Test Deploy

Page 38: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• Secure, scalable, and managed Git source

control

• Use standard Git tools

• Scalability, availability, and durability of

Amazon S3

• Encryption at rest with customer-specific

keys

• No repo size limit

• Post commit hooks to call out to SNS,

Lambda, and CloudWatch Events

AWS CodeCommit

Page 39: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Code Services

AWS CodeCommit AWS CodeBuildAWS Cloud9 AWS CodeBuild

Edit Source Build Test Deploy

Page 40: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• Fully managed build service that compiles

source code, runs tests, and produces

software packages

• Scales continuously and processes multiple

builds concurrently

• You can provide custom build environments

suited to your needs via Docker images

• Only pay by the minute for the compute

resources you use

AWS CodeBuild

Page 41: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Code Services

AWS CodeCommit AWS CodeBuild AWS CodeDeployAWS Cloud9 AWS CodeBuild

Edit Source Build Test Deploy

Page 42: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• Automates code deployments to any

instance or Lambda function

• Handles the complexity of updating your

applications

• Avoid downtime during application

deployment

• Rollback automatically if failure detected

• Deploy to Amazon EC2, Lambda, or on-

premises servers

AWS CodeDeploy

Page 43: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Code Services

AWS CodeCommit AWS CodeBuild AWS CodeDeploy

AWS CodePipeline

AWS Cloud9 AWS CodeBuild

Edit Source Build Test Deploy

Page 44: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

• 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 third-party tools and

AWS

AWS CodePipeline

Page 45: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS Code Services

Edit Source Build Test Deploy

AWS CodeCommit AWS CodeBuild AWS CodeDeploy

AWS CodePipeline

AWS

CodeStar

AWS Cloud9 AWS CodeBuild

Page 46: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS CodeStar

• Quickly develop, build, and deploy

applications on AWS

• Start developing on AWS in minutes

• Securely work across your team

• Choose from a variety of project

templates

Page 47: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Continuous Deployment for Containers

Edit Source Build Test Deploy

AWS CodeCommit AWS CodeBuild

AWS CodePipeline

AWS

CloudFormation

Amazon ECSAmazon ECR

Page 48: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Continuous Deployment for Serverless

Edit Source Build Test Deploy

AWS CodeCommit AWS CodeBuild AWS CodeDeploy

AWS CodePipeline

AWS Cloud9

AWS

Lambda

AWS

CloudFormation

Page 49: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Demo

CI/CD with AWS

Page 50: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Lunch Wheel

Where do you want

to go to lunch?

I don’t know.

Where do you want

to go?

I don’t know.

Where do you want

to go?

I don’t know.

Where do you want

to go?

Page 51: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Lunch Wheel

Page 52: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Lunch Wheel

Page 53: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Lunch Wheel

Amazon

API Gateway

Amazon

Cognito

User Pool

Amazon S3

Bucket

AWS Lambda

Functions

Amazon DynamoDB

Table

Authenticatio

n Static

Assets

REST

APIs

Page 54: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Food Trucks Slack Bot

The lunch wheel

chose food trucks!

What food trucks

are there today?

I don’t know…

Page 55: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Food Trucks Slack Bot

Page 56: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Food Trucks Slack Bot

Amazon

API Gateway

AWS Lambda

Function:

Slack Bot

Amazon DynamoDB

Table

Retrieve data

Amazon

CloudWatch

Events Rule

AWS Lambda

Function:

Scrape Data

Store data

Page 57: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Food Trucks Slack Bot

Amazon

API Gateway

AWS Lambda

Function Alias

“live”

Page 58: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Food Trucks Slack Bot

Amazon

API Gateway

AWS Lambda

Function Alias

“live”

Slack Bot

Code v1

Slack Bot

Code v2

80%

20%

Page 59: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Food Trucks Slack Bot

Amazon

API Gateway

AWS Lambda

Function Alias

“live”

Slack Bot

Code v1

Slack Bot

Code v2

0%

100%

Page 60: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Food Trucks Slack Bot

Amazon

API Gateway

AWS Lambda

Function Alias

“live”

Slack Bot

Code v1

Slack Bot

Code v2

80%

20%

Amazon

CloudWatch

Events Rule

Page 61: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Live Demo!

Page 62: Improve Productivity with Continuous Integration & Deliveryaws-de-media.s3.amazonaws.com/images/AWS_Summit... · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved

© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Thank you!

Get started with CI/CD in under 5 minutes

https://aws.amazon.com/codestar/