aws lambda, good for the little things some use...
TRANSCRIPT
AWS Lambda, Good for the little things – Some use cases
Carl Simpson
Technical Architect – Zen Internet Limited
V1.0 AWS Lambda, Good for the little things
8/09/2016
Components
The Use Cases
Gotcha’s
Questions(?)
Agenda
V1.0 AWS Lambda, Good for the little things
8/09/2016
Components
V1.0 AWS Lambda, Good for the little things
8/09/2016
• You write the code, Lambda runs it
• Node.js / Java / Python
• 100ms of CPU @128MB RAM = $0.000000208
Components - AWS Lambda
V1.0 AWS Lambda, Good for the little things
8/09/2016
Components – Lambda’s friends
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Cases
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use case 1
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 1: Take Regular EBS snapshots of important volumes
Important
Important
Reliable:
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 1: Regular EBS volume snapshots
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 1: Regular EBS volume snapshots
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use case 2
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 2: Development Database
Developers
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 2: Development Database
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 2: Development Database
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 2: Development Database
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 2: Development Database
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 2: Development Database
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use case 3
V1.0 AWS Lambda, Good for the little things
8/09/2016
• Lock down environment access to trusted IP addresses
• Allow AWS Services access for monitoring
• Not to worry about AWS Service IPs changing
• This was provided by AWS on their blog: https://blogs.aws.amazon.com/security (but I did help fix it )
Use Case 3: Auto-updating Security Group
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 3: Auto-updating Security Group
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 3: Auto-updating Security Group
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 3: Auto-updating Security Group
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 3: Auto-updating Security Group
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use case 4
V1.0 AWS Lambda, Good for the little things
8/09/2016
• Maintain customised, patched (Windows) AMIs
• Share AMIs with customer accounts
• Low operational overhead
Use Case 4: Custom AMI builds (Windows)
V1.0 AWS Lambda, Good for the little things
8/09/2016
Use Case 4: Automated Custom Windows AMI builds
V1.0 AWS Lambda, Good for the little things
8/09/2016
Gotcha’s
V1.0 AWS Lambda, Good for the little things
8/09/2016
CloudFormation – Inconsistent Lambda triggers
S3 Team
AWS::S3::Bucket
(“NotificationConfiguration”)
SNS Team
AWS::Lambda::Permission
CloudWatch Team
AWS::Events::Rule
V1.0 AWS Lambda, Good for the little things
8/09/2016
SNS – AWS Managed Notifications
V1.0 AWS Lambda, Good for the little things
8/09/2016
SNS Topics I’ve come across:
– arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged
– arn:aws:sns:us-east-1:801119661308:ec2-windows-ami-update
– arn:aws:sns:us-east-1:801119661308:ec2-windows-ami-private
– arn:aws:sns:us-east-1:801119661308:ec2-windows-ec2config
SNS – AWS Managed Notifications
V1.0 AWS Lambda, Good for the little things
8/09/2016
SNS – AWS Managed Notifications
V1.0 AWS Lambda, Good for the little things
8/09/2016
• Lambda’s also good for little things too!
• Give it a go
• Ask me about it later
Summary
V1.0 AWS Lambda, Good for the little things
8/09/2016
Questions?