Weitere ähnliche Inhalte Ähnlich wie Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) - AWS re:Invent 2018 (20) Mehr von Amazon Web Services (20) Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) - AWS re:Invent 20182. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scaling and Automating DevOps
with CloudBees and Spot Instances
Joseph Fontes
Partner Solutions Architect
Amazon Web Services / Emerging Partners
G P S T E C 3 1 0
3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
CICD—Goals and challenges
AWS DevOps technology features
Deployment testing
Example: Simple web application
Example: Serverless application
Example: Container applications
4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
5. “There's a lot of undifferentiated heavy lifting that stands
between your idea and that success…70% of your time,
energy, and dollars go into the undifferentiated heavy
lifting and only 30% of your energy, time, and dollars gets
to go into the core kernel of your idea.”
Jeff Bezos
CEO
6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is this CICD you speak of?
• Speed of software
• Get products/features out to customers
• Continuous integration
• Where is your code?
• Continuous deployment/delivery
• Where is your code going?
7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DevOps practices
• Continuous integration
• Continuous delivery & deployment
8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Opportunities
• Automation
• Maintenance
• Testing
9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A brief history of CICD
• Shell scripts
• Quiet failures
• Limited testing
10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS pace of innovation
0
200
400
600
800
1000
1200
1400
1600
2010 2011 2012 2013 2014 2015 2016 2017
AWS Features and Services Launched
AWS Features and Services Launched
11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reliability
Benefits
SpeedScale
Rapid deliveryImproved collaboration
Security
13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeStar
Provides a single, centralized solution
to development and CICD processes
• Project templates
• Team access management
• Source code repository
• Managed build service
• Continuous delivery pipeline
• Automated deployments
• IDE integrations
• Project dashboard
15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
AWS CodePipeline AWS CodeCommit AWS CodeBuildAWS CodeDeployAWS CodeStar
16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Source Build Test Production
Software release steps:
AWS CodeCommit
17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Source Build Test Production
Software release steps:
AWS CodeBuild
18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Source Build Test Production
Third-party
tooling
Software release steps:
19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Source Build Test Production
Software release steps:
AWS CodeDeploy
20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Source Build Test Production
Third-party
tooling
AWS CodeCommit AWS CodeBuild AWS CodeDeploy
AWS CodePipeline
AWS Code Services
Software release steps:
21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Source Build Test Production
Third-party
tooling
Software release steps:
AWS CodeCommit AWS CodeBuild AWS CodeDeploy
AWS CodePipeline
AWS CodeStar
22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build and CI/CD
Logging and monitoringApplications and deployment
Chalice Framework Serverless Java Container
23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Functionality testing
• Building tests
• Monitoring functionality
• Visual changes
• Notifications
• Integrations
25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Load testing
• Ensure performance
• Test scalability
• Preview failures
26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Demand
Pay for compute
capacity by the hour
with no long-term
commitments
For spiky workloads,
or to define needs
Amazon Elastic Compute Cloud (Amazon EC2)
consumption models
Reserved
Make a low, one-time
payment and receive
a significant discount
on the hourly charge
For committed
utilization
Spot
Bid for unused
capacity, charged at
a Spot Price which
fluctuates based on
supply and demand
For time-insensitive,
transient, or stateless
workloads
28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeBuild
No need to manage build servers
Low, pay-as-you-go pricing
Use pre-configured build environments or bring your own
Source code Build trigger CodeBuild Output artifacts
29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment overview
30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building blocks for serverless applications
AWS Lambda
Amazon DynamoDB
Amazon SNS
Amazon API Gateway Amazon SQS Amazon Kinesis
Amazon S3
Orchestration and State Management
API Proxy and GraphQL Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions Amazon Cognito
User Management and IdP
AWS AppSync Amazon Athena
AWS Lambda@Edge
33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DevOps practices
Infrastructure as code
• Model your AWS resources using code
34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless overview
Amazon S3
Amazon
CloudFront
Static
Content
Content
delivery
API
layer
Application
layer
Persistency
layer
API
Gateway
Amazon
DynamoDB
AWS
Lambda
35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous delivery to Amazon Elastic Container
Service (Amazon ECS) with Jenkins
4. Push image to
Docker registry
2. Build image
from sources
3. Run test on image
1. Code push
triggers build
5. Update service
6. Pull image
38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
39. Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Joe Fontes
Partner Solutions Architect
fontesj@amazon.com
40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.