The dev ops code has no servers

15
The DevOps Code Has No Servers The Cobbler’s Children Have No Shoes @edyesed

Transcript of The dev ops code has no servers

Page 1: The dev ops code has no servers

The DevOps Code Has No Servers

The Cobbler’s Children Have No Shoes

@edyesed

Page 2: The dev ops code has no servers

RealSelf

RealSelf is the world’s most trusted online destination for improving body, face, and smile.

We empower you to make smart decisions that lead to great experiences.

Page 3: The dev ops code has no servers

RealSelf is Hiring

Page 4: The dev ops code has no servers

Functions are great for DevOps

● Integration Gymnastics

● Dependency Hell

● Cron, ugh

@edyesedThe DevOps Code Has No Servers

Richard Dean Anderson

Page 5: The dev ops code has no servers

Speaking of Cron

● */5 cron that runs for 3m

● t2.micro is $8.76/mo

● 128M/RAM Lambda is $3.24/mo

@edyesedThe DevOps Code Has No Servers

Pamela Anderson

Page 6: The dev ops code has no servers

What is Good about Functions

● Event Driven / No Idle Sunk Cost

● Integration Points

● No Dependency Hell

● Deeply Coupled to the Platform

@edyesedThe DevOps Code Has No Servers

Gillian Anderson

Page 7: The dev ops code has no servers

What is Yet-To-Be-Improved about Functions

● Cold Start is Cold

● Integration Geniuses Needed

● You Want Dependency Hell*

● Application Performance Mgmt

@edyesedThe DevOps Code Has No Servers

Michael J Anderson

Page 8: The dev ops code has no servers

5 Use Cases for Functions

● Canonical Name Redirector

● Email-to-Chat Gateway

● MySQL SlowQueryLog Getter

● CloudTrail Elastic Gateway

● Markov Twitterbots

@edyesedThe DevOps Code Has No Servers

Anderson Cooper

Page 9: The dev ops code has no servers

Canonical Name Redirector

● Trigger: API Gateway

● Runtime: python

● IAM Profile: Minimal

● Other Resources: CloudFront

● github.com/RealSelf/serverless-canonical-name-redirector

@edyesedThe DevOps Code Has No Servers

Page 10: The dev ops code has no servers

Email To Slack Gateway

● Trigger: SNS via SES

● Runtime: python

● IAM Profile: Minimal

● Other Resources: None

● github.com/RealSelf/serverless-email-to-slack

@edyesedThe DevOps Code Has No Servers

Page 11: The dev ops code has no servers

MySQL SlowQueryLog Elastic● Trigger: Schedules

● Runtime: python

● IAM Profile: CloudWatch

● Other Resources: None

● github.com/RealSelf/severless-rds-slowquery-to-elastic

@edyesedThe DevOps Code Has No Servers

Page 12: The dev ops code has no servers

CloudTrail to Elastic

● Trigger: CloudTrail ( S3 )

● Runtime: python

● IAM Profile: Minimal

● Other Resources: AWS ES

● github.com/edyesed/cloudtrail-to-elasticsearch-lambda

@edyesedThe DevOps Code Has No Servers

Page 13: The dev ops code has no servers

Markov Twitterbot

● Trigger: Scheduled

● Runtime: python

● IAM Profile: Minimal

● Other Resources: AWS ES

● github.com/edyesed/bobdylan_ebooks

@edyesedThe DevOps Code Has No Servers

Page 14: The dev ops code has no servers

serverless summary

● Let the CLOUD do the work

● No more idleness sunk cost

● KISS

● Manage Your CloudFormation

@edyesedThe DevOps Code Has No Servers

Michael P Anderson

Page 15: The dev ops code has no servers

LINKS

● github.com/RealSelf/serverless-canonical-name-redirector

● github.com/RealSelf/serverless-email-to-slack

● github.com/RealSelf/severless-rds-slowquery-to-elastic

● github.com/edyesed/cloudtrail-to-elasticsearch-lambda

● github.com/edyesed/bobdylan_ebooks@edyesedThe DevOps Code Has No Servers