SlideShare una empresa de Scribd logo
1 de 27
Descargar para leer sin conexión
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Mythical Mysfits: DevSecOps with
Docker and AWS Fargate
Hubert Cheung
Solutions Architect
AWS
C O N 3 2 1 - R 2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Release processes
CI/CD on AWS
• AWS CodeCommit
• AWS CodePipeline
• AWS CodeBuild
Hands-on lab
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Release process phases
Source Build Test Production
• Integration
tests with
other
systems
• Load testing
• UI tests
• Penetration
testing
• Check-in
source code
such as
Dockerfiles
• Peer review
new code
• Compile code
• Unit tests
• Style
checkers
• Code metrics
• Create
container
images
• Deployment
to production
environments
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Release process phases
Source Build Test Production
Continuous integration
Continuous delivery
Continuous deployment
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why should I care about CI/CD?
• Velocity
• Improved productivity and efficiency
• Reduced risk
• Shorter feedback loop
• Automation!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenges
• Automation!
• Metrics and monitoring
• Legacy processes
• Legacy … anything
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Common patterns and solutions
Automate as much as possible
• Start small. Don’t try to automate everything.
Microservices
Strict API contracts
• Get expected outputs from teams consuming your service
Testing
• Mandate arbitrary number of tests to start
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate automate automate!
Source Build Test Production
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate automate automate!
Source Build Test Production
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate automate automate!
Source Build Test Production
Third-party
tooling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate automate automate!
Source Build Test Production
Third-party
tooling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate automate automate!
Source Build Test Production
Third-party
tooling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate automate automate!
Source Build Test Production
Third-party
tooling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate automate automate!
Source Build Test Production
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Mythical Mysfits
www.mythicalmysfits.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Our mission: Ethical, mythical creature care
Our priority: Find homes for the abandoned, and often misunderstood, mythical creatures in our
community
Help us find their forever homes!
Your mission: Modernize and innovate on the Mythical stack
Lab 0: Mythical stack - recap
Lab 1: Starting the DevSecOps journey
Lab 2: Offloading builds from local machines
Lab 3: Automating end-to-end deployments
Lab 4: Implementing container image scanning
Welcome to Mythical Mysfits
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC
AWS Cloud
Public subnet Public subnet
users
/ + /fulfill-like
/like
/fulfill-like
/fulfill-like
Lab 0: Mythical stack - recap
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab 1: Starting the DevSecOps journey
You
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab 2: Offloading builds from local machines
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab 3: Automating end-to-end deployments
build
pushpublish
pull
deploy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab 4: Implementing container image scanning
build
pushpublish
pull
deploy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Instructions:
http://www.mythicalmysfits.com/fargate-devsecops
Raise your hand if you have any questions. Feel free to work together with folks at
your table. Near the end, we’ll hand out $25 AWS credit codes to cover costs for
the workshop.
High-five your neighbors and have fun! Please fill out feedback forms and follow
the clean-up instructions once you are done!
Email us with comments/questions/feedback:
aws-mythical-mysfits@amazon.com
Logistics
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hubert Cheung
aws-mythical-mysfits@amazon.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Más contenido relacionado

Más de Amazon Web Services

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSAmazon Web Services
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAmazon Web Services
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightAmazon Web Services
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotAmazon Web Services
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Amazon Web Services
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?Amazon Web Services
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksAmazon Web Services
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Amazon Web Services
 

Más de Amazon Web Services (20)

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWS
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei server
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSight
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced Attacks
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
 

Mythical Mysfits: DevSecOps with Docker and AWS Fargate (CON321-R2) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Mythical Mysfits: DevSecOps with Docker and AWS Fargate Hubert Cheung Solutions Architect AWS C O N 3 2 1 - R 2
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Release processes CI/CD on AWS • AWS CodeCommit • AWS CodePipeline • AWS CodeBuild Hands-on lab
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Release process phases Source Build Test Production • Integration tests with other systems • Load testing • UI tests • Penetration testing • Check-in source code such as Dockerfiles • Peer review new code • Compile code • Unit tests • Style checkers • Code metrics • Create container images • Deployment to production environments
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Release process phases Source Build Test Production Continuous integration Continuous delivery Continuous deployment
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why should I care about CI/CD? • Velocity • Improved productivity and efficiency • Reduced risk • Shorter feedback loop • Automation!
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Challenges • Automation! • Metrics and monitoring • Legacy processes • Legacy … anything
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Common patterns and solutions Automate as much as possible • Start small. Don’t try to automate everything. Microservices Strict API contracts • Get expected outputs from teams consuming your service Testing • Mandate arbitrary number of tests to start
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate automate automate! Source Build Test Production
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate automate automate! Source Build Test Production
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate automate automate! Source Build Test Production Third-party tooling
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate automate automate! Source Build Test Production Third-party tooling
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate automate automate! Source Build Test Production Third-party tooling
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate automate automate! Source Build Test Production Third-party tooling
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate automate automate! Source Build Test Production
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Mythical Mysfits www.mythicalmysfits.com
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Our mission: Ethical, mythical creature care Our priority: Find homes for the abandoned, and often misunderstood, mythical creatures in our community Help us find their forever homes! Your mission: Modernize and innovate on the Mythical stack Lab 0: Mythical stack - recap Lab 1: Starting the DevSecOps journey Lab 2: Offloading builds from local machines Lab 3: Automating end-to-end deployments Lab 4: Implementing container image scanning Welcome to Mythical Mysfits
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. VPC AWS Cloud Public subnet Public subnet users / + /fulfill-like /like /fulfill-like /fulfill-like Lab 0: Mythical stack - recap
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab 1: Starting the DevSecOps journey You
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab 2: Offloading builds from local machines
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab 3: Automating end-to-end deployments build pushpublish pull deploy
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab 4: Implementing container image scanning build pushpublish pull deploy
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Instructions: http://www.mythicalmysfits.com/fargate-devsecops Raise your hand if you have any questions. Feel free to work together with folks at your table. Near the end, we’ll hand out $25 AWS credit codes to cover costs for the workshop. High-five your neighbors and have fun! Please fill out feedback forms and follow the clean-up instructions once you are done! Email us with comments/questions/feedback: aws-mythical-mysfits@amazon.com Logistics
  • 26. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Hubert Cheung aws-mythical-mysfits@amazon.com
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.