Slide 1

Slide 1 text

Getting Serverless into Production Faster Eoin Shanaghy @eoins

Slide 2

Slide 2 text

• Next generation (serverless) cloud architecture • Machine Learning • Platform modernisation

Slide 3

Slide 3 text

aiasaservicebook.com 40% Code: mtpaws19 @eoins !

Slide 4

Slide 4 text

slic.app OPEN SOURCE

Slide 5

Slide 5 text

# Fork fourTheorem/slic-starter.git # Node 8 npm install –g [email protected] Getting Ready...

Slide 6

Slide 6 text

Account Setup # Account credentials (AWS_...) cp slic-config.json.sample slic-config.json # 1. Edit accountIds # 2. Remove nsDomain # 3. Configure siteBucketPrefix

Slide 7

Slide 7 text

GitHub Personal Access Token aws codebuild import-source-credentials -- generate-cli-skeleton > /tmp/skeleton.json # Change serverType to GITHUB # Change authType to PERSONAL_ACCESS_TOKEN # Delete username aws codebuild import-source-credentials --cli- input-json file:///tmp/skeleton.json

Slide 8

Slide 8 text

CI/CD IAM Role cd cicd/cross-account Sls deploy

Slide 9

Slide 9 text

CI/CD Deployment cd cicd npm install npm run build npm run cdk –bootstrap npm run deploy

Slide 10

Slide 10 text

The Problem with Serverless

Slide 11

Slide 11 text

The Solution 1. Put all best practices together 2. Make opinionated decisions 3. Starter, not a framework 4. Replicate production environment 5. Make it open source 6. Continuously deploy

Slide 12

Slide 12 text

SLIC Starter Production-grade application in 1 day Save months of pain

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

AWS Only!

Slide 19

Slide 19 text

Multiple Accounts

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Multiple Accounts

Slide 22

Slide 22 text

Serverless Framework CDK

Slide 23

Slide 23 text

CDK

Slide 24

Slide 24 text

CDK

Slide 25

Slide 25 text

Cloud Native CD

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Configure SSM Parameters cp util/ssm-params-template.json /tmp/ssm- params.json util/create-ssm-params.js /tmp/ssm-params.json rm /tmp/ssm-params.json

Slide 28

Slide 28 text

Trigger a build! # Edit README.md git add README.md git commit –m “Trigger a build!” git push

Slide 29

Slide 29 text

API Tests E2E Tests • Mock Amplify / Cognito Login • Mailosaur

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Local Development

Slide 32

Slide 32 text

fuge.io serverless offline sls invoke local Localstack

Slide 33

Slide 33 text

Users and Accounts Amplify SDK Cognito User Pool

Slide 34

Slide 34 text

Events

Slide 35

Slide 35 text

Kinesis CloudWatch Events SQS

Slide 36

Slide 36 text

Front End

Slide 37

Slide 37 text

Amplify SDK React Redux Material UI S3 CloudFront

Slide 38

Slide 38 text

Logging

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Tracing

Slide 42

Slide 42 text

AWS X-Ray

Slide 43

Slide 43 text

Roadmap

Slide 44

Slide 44 text

Roadmap üQuick start local development üSingle account üBetter IAM story üMonitoring üFeature branch deployments üPermissions and access control üReal time event processing üAnalytics

Slide 45

Slide 45 text

Thank You [email protected] @eoins