Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
@txase
The Serverless Path From Dev to Production
Chase Douglas, CTO
chase@stackery.io
@txase
@txase
My Background
Brought Multi-Touch Input Support To The Linux Desktop
Technical Architect of New Relic Browser
CTO a...
@txase
What I’ve Seen
Business Impeded Because
Infrastructure/Processes Couldn’t
Scale
Engineering Orgs That Don’t Know
Wh...
@txase
Spent Years Figuring Out
Best Practices For Serverless
@txase
Come on Chase…
@txase
Spent Years Figuring Out Best Practices
For Modern Application Development
Using Managed Services
That Provide Opin...
@txase
Thanks Chase!
@txase
Serverless is this new thing
We need to rethink how we
build, deploy, and operate
@txase
You may have been to a conference
where the presenter shows off
their impressive serverless architecture
@txase
@txase
But how did they get there?
@txase
People often ask us:
How do you build a serverless CI/CD pipeline?
@txase
What they are actually asking:
How do we build a dev to production pipeline?
@txase
We’re here today to answer that question!
@txase
Functions / Containers
Anatomy of a Serverless App
15
Business Logic
@txase
Anatomy of a Serverless App
16
Business LogicFunctions/Containers
Managed Cloud
Services
S3 Storage Bucket
Cognito
...
@txase
Anatomy of a Serverless App
17
Business LogicFunctions/Containers
Managed Cloud
Services
What dependencies should t...
@txase18
Should you
replicate AWS on
a laptop?
@txase
Today – the lifecycle of a serverless app is complex
19
Your CI/CDYour IDE
Your Git Provider
Your Function Code
@txase
Today – the lifecycle of a serverless app is complex
20
Your CI/CDYour IDE
Your Git Provider
Your Function Code
AWS...
@txase
Today – the lifecycle of a serverless app is complex
21
Your CI/CDYour IDE
Your Git Provider
Your Function Code
AWS...
@txase
Today – the lifecycle of a serverless app is complex
22
Your CI/CDYour IDE
Your Git Provider
Your Function Code
AWS...
@txase
Today – the lifecycle of a serverless app is complex
23
Your CI/CDYour IDE
Your Git Provider
Your Function Code
You...
@txase
Today – the lifecycle of a serverless app is complex
24
Your CI/CDYour IDE
Your Git Provider
Your Function Code
App...
@txase
Today – the lifecycle of a serverless app is complex
25
Your CI/CDYour IDE
Your Git Provider
Your Function Code
Clo...
@txase
Today – the lifecycle of a serverless app is complex
26
Your CI/CDYour IDE
Your Git Provider
Your Function Code
AWS...
@txase
Today – the lifecycle of a serverless app is complex
27
Compose & Edit
Architecture &
Functions
Environment
Configu...
@txase
Today – the lifecycle of a serverless app is complex
28
Compose & Edit
Architecture &
Functions
Environment
Configu...
@txase
Accelerating with Stackery
29
Compose & Edit
Architecture &
Functions
Environment
Configuration
Build & Package Ope...
@txase
Let’s Break It Down!
@txase
First: Architect Application
@txase
Start With IaC For Infrastructure
Compose & Edit
Architecture &
Functions
AWS
SAM
serverless.yml
AWS Cloudformation...
@txase
AWSAcc1 AWSAcc2 AWSAcc2 AWSAcc3 AWSAcc3
Environments x Teams x Devs x Services x AWS regions
33
Dev-Sam Test 1 Stag...
@txase
There’s A Better Way
@txase
One Template, Parameterized
AWS SSM Parameter Store
@txase
One Template, Parameterized
SAM Template
@txase
New VS Code Integration!
@txase
Next: CI / CD
@txase
Need A Way To Build Function Packages And Upload
@txase
AWS SAM Build
Builds All Your
Functions In Your
Template
Uploads Templates
To CloudFormation
@txase
Now We Just Need A Pipeline
@txase
CI / CD Pipeline
@txase
Next We Need Monitoring
@txase
Monitoring Solutions
AWS X-Ray
AWS CloudWatch Epsagon
@txase
But Monitoring Tools Require Instrumentation
How Can We Automate Instrumentation?
@txase
Ensure AWS
Monitoring
Switches Are
Enabled
@txase
AWS Lambda Layers For Third-Party Tools
@txase
Automated Monitoring Instrumentation
+
Integrations
@txase
Finally: How To Rapidly Iterate Code
@txase
Need Three Things For Rapid Iteration
@txase
Code Execution Environment
@txase
Function Configuration For Service Discovery
@txase
Same Permissions As In The Cloud
@txase
@txase
Now You’re Set To Take On The World!
@txase
If You Want To Learn How To Serverless
With Confidence…
Sign Up For Free At
stackery.io
@txase
Thank you
Chase Douglas, CTO
chase@stackery.io
Link To Slides Will Be Shared On Twitter By @txase
Upcoming SlideShare
Loading in …5
×

Serverless Development To Production Pipeline

908 views

Published on

What does the development environment to production pipeline look like? In this presentation we look at all the tools and services needed to effectively build and deploy applications!

Published in: Engineering
  • Be the first to like this

Serverless Development To Production Pipeline

  1. 1. @txase The Serverless Path From Dev to Production Chase Douglas, CTO chase@stackery.io @txase
  2. 2. @txase My Background Brought Multi-Touch Input Support To The Linux Desktop Technical Architect of New Relic Browser CTO and Co-founder of Stackery
  3. 3. @txase What I’ve Seen Business Impeded Because Infrastructure/Processes Couldn’t Scale Engineering Orgs That Don’t Know What Has Been Deployed Where
  4. 4. @txase Spent Years Figuring Out Best Practices For Serverless
  5. 5. @txase Come on Chase…
  6. 6. @txase Spent Years Figuring Out Best Practices For Modern Application Development Using Managed Services That Provide Opinionated Event-Driven Interfaces
  7. 7. @txase Thanks Chase!
  8. 8. @txase Serverless is this new thing We need to rethink how we build, deploy, and operate
  9. 9. @txase You may have been to a conference where the presenter shows off their impressive serverless architecture
  10. 10. @txase
  11. 11. @txase But how did they get there?
  12. 12. @txase People often ask us: How do you build a serverless CI/CD pipeline?
  13. 13. @txase What they are actually asking: How do we build a dev to production pipeline?
  14. 14. @txase We’re here today to answer that question!
  15. 15. @txase Functions / Containers Anatomy of a Serverless App 15 Business Logic
  16. 16. @txase Anatomy of a Serverless App 16 Business LogicFunctions/Containers Managed Cloud Services S3 Storage Bucket Cognito Authentication Other Cloud Service… DynamoDB Table
  17. 17. @txase Anatomy of a Serverless App 17 Business LogicFunctions/Containers Managed Cloud Services What dependencies should this app use in each dev, test, staging, or prod environment? Production vs test database? New VPC or existing? Logging service? Credentials? Environments: Namespace for each deployment target S3 Storage Bucket Cognito Authentication Other Cloud Service… DynamoDB Table
  18. 18. @txase18 Should you replicate AWS on a laptop?
  19. 19. @txase Today – the lifecycle of a serverless app is complex 19 Your CI/CDYour IDE Your Git Provider Your Function Code
  20. 20. @txase Today – the lifecycle of a serverless app is complex 20 Your CI/CDYour IDE Your Git Provider Your Function Code AWS SAM serverless
  21. 21. @txase Today – the lifecycle of a serverless app is complex 21 Your CI/CDYour IDE Your Git Provider Your Function Code AWS Cloudformation Your AWS Console Your AWS Account Your AWS Credentials AWS SAM serverless
  22. 22. @txase Today – the lifecycle of a serverless app is complex 22 Your CI/CDYour IDE Your Git Provider Your Function Code AWS Cloudformation Your AWS Parameter StoreAWS Cloudformation Your AWS Console Your AWS Account Your AWS Credentials serverlessAWS SAM
  23. 23. @txase Today – the lifecycle of a serverless app is complex 23 Your CI/CDYour IDE Your Git Provider Your Function Code Your AWS Secrets Manager AWS Cloudformation Your AWS Parameter StoreAWS Cloudformation Your AWS Console Your AWS Account Your AWS Credentials serverlessAWS SAM
  24. 24. @txase Today – the lifecycle of a serverless app is complex 24 Your CI/CDYour IDE Your Git Provider Your Function Code App Code + dependencies packaged artifact Your AWS Secrets Manager AWS Cloudformation Your AWS Parameter StoreAWS Cloudformation Your AWS Console Your AWS Account Your AWS Credentials serverlessAWS SAM
  25. 25. @txase Today – the lifecycle of a serverless app is complex 25 Your CI/CDYour IDE Your Git Provider Your Function Code Cloudwatch X-Ray, & 3rd Party Monitoring App Code + dependencies packaged artifact Your AWS Secrets Manager AWS Cloudformation Your AWS Parameter StoreAWS Cloudformation Your AWS Console Your AWS Account Your AWS Credentials serverlessAWS SAM
  26. 26. @txase Today – the lifecycle of a serverless app is complex 26 Your CI/CDYour IDE Your Git Provider Your Function Code AWS Cloudformation Your AWS Console Your AWS Credentials App Code + dependencies packaged artifact Cloudwatch X-Ray, & 3rd Party MonitoringAWS Parameter Store AWS Parameter Store Your AWS Parameter Store AWS Secrets ManagerAWS Secrets Manager Your AWS Secrets Manager Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS Account US-West2 Dev #1 US-East1 Staging #1 serverlessAWS SAM
  27. 27. @txase Today – the lifecycle of a serverless app is complex 27 Compose & Edit Architecture & Functions Environment Configuration Build & Package OperatePromote to Prod Deploy in Dev / Test Your CI/CDYour IDE Your Git Provider Your Function Code AWS Cloudformation Your AWS Console Your AWS Credentials App Code + dependencies packaged artifact Cloudwatch X-Ray, & 3rd Party MonitoringAWS Parameter Store AWS Parameter Store Your AWS Parameter Store AWS Secrets ManagerAWS Secrets Manager Your AWS Secrets Manager Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS Account US-West2 Dev #1 US-East1 Staging #1 serverlessAWS SAM
  28. 28. @txase Today – the lifecycle of a serverless app is complex 28 Compose & Edit Architecture & Functions Environment Configuration Build & Package Operate Cloudwatch X-Ray, & 3rd Party Monitoring Your AWS ConsoleAWS Parameter Store AWS Parameter Store Your AWS Parameter Store AWS Secrets ManagerAWS Secrets Manager Your AWS Secrets Manager App Code + dependencies packaged artifact AWS Cloudformation Your CI/CD Promote to Prod Deploy in Dev / Test Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS Account US-West2 Dev #1 US-East1 Staging #1 Your AWS Credentials Your IDE Your Git Provider Your Function Code serverlessAWS SAM
  29. 29. @txase Accelerating with Stackery 29 Compose & Edit Architecture & Functions Environment Configuration Build & Package Operate Cloudwatch X-Ray, & 3rd Party MonitoringYour AWS ConsoleAWS Parameter Store AWS Parameter Store Your AWS Parameter Store AWS Secrets ManagerAWS Secrets Manager Your AWS Secrets Manager App Code + dependencies packaged artifact AWS Cloudformation Your CI/CD Promote to Prod Deploy in Dev / Test Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS AccountAWS Cloudformati on Your AWS Account US-West2 Dev #1 US-East1 Staging #1 Your AWS Credentials Stackery Visual and YAML AWS Service Template Composer & Editor Stackery Environment Editor Stackery Package & Builder Stackery Environment Management Stackery Operations Console Stackery AWS Role Limited Permission Butler Stackery CLI Your IDE Your Git Provider Your Function Code Infrastructure As Code For Managed Services & Environment Parameters and Secrets Management & Workflows and Dashboards that Scale across Enterprise Organizations Stackery VS Code Plugin AWS SAM serverless
  30. 30. @txase Let’s Break It Down!
  31. 31. @txase First: Architect Application
  32. 32. @txase Start With IaC For Infrastructure Compose & Edit Architecture & Functions AWS SAM serverless.yml AWS Cloudformation Stackery Visual and YAML AWS Service Template Composer & Editor Your IDE Your Git Provider Your Function Code Stackery VS Code Plugin
  33. 33. @txase AWSAcc1 AWSAcc2 AWSAcc2 AWSAcc3 AWSAcc3 Environments x Teams x Devs x Services x AWS regions 33 Dev-Sam Test 1 Stage 2a Production US-West2 Production US-East1 Dev-Chase Test 2 Dev-Danelle Test 2 Chaos-Danelle N’Dev
  34. 34. @txase There’s A Better Way
  35. 35. @txase One Template, Parameterized AWS SSM Parameter Store
  36. 36. @txase One Template, Parameterized SAM Template
  37. 37. @txase New VS Code Integration!
  38. 38. @txase Next: CI / CD
  39. 39. @txase Need A Way To Build Function Packages And Upload
  40. 40. @txase AWS SAM Build Builds All Your Functions In Your Template Uploads Templates To CloudFormation
  41. 41. @txase Now We Just Need A Pipeline
  42. 42. @txase CI / CD Pipeline
  43. 43. @txase Next We Need Monitoring
  44. 44. @txase Monitoring Solutions AWS X-Ray AWS CloudWatch Epsagon
  45. 45. @txase But Monitoring Tools Require Instrumentation How Can We Automate Instrumentation?
  46. 46. @txase Ensure AWS Monitoring Switches Are Enabled
  47. 47. @txase AWS Lambda Layers For Third-Party Tools
  48. 48. @txase Automated Monitoring Instrumentation + Integrations
  49. 49. @txase Finally: How To Rapidly Iterate Code
  50. 50. @txase Need Three Things For Rapid Iteration
  51. 51. @txase Code Execution Environment
  52. 52. @txase Function Configuration For Service Discovery
  53. 53. @txase Same Permissions As In The Cloud
  54. 54. @txase
  55. 55. @txase Now You’re Set To Take On The World!
  56. 56. @txase If You Want To Learn How To Serverless With Confidence… Sign Up For Free At stackery.io
  57. 57. @txase Thank you Chase Douglas, CTO chase@stackery.io Link To Slides Will Be Shared On Twitter By @txase

×