rights reserved. Serverless Applications EVENT SOURCE FUNCTION SERVICES (ANYTHING) Changes in data state Requests to endpoints Changes in Resource state Node Python Java C# Go Triggers an invocation
its Affiliates. All rights reserved. AWS EVENT SOURCES INTERNAL PROCESSES EXTERNAL WEB HOOKS AWS Account Events Step Functions And CloudWatch Scheduled Events API Gateway
its Affiliates. All rights reserved. AWS CodeCommit AWS CloudTrail AWS Config Events • Push to Branch (all or named branch) • Create Branch • Delete Branch e.g. on push to a specified branch, setup a new test environment with sample data by triggering Amazon CloudFormation to build your infrastructure Events • Amazon S3 event trigger (CloudTrail records all data to an S3 bucket) • Or scheduled CloudWatch Event (cron) e.g. regularly check for out of hours API activity from your development team Events • AWS Custom configuration rules • Periodic or Configuration changes e.g. create rule that no Lambda function role should have delete permissions on a Amazon DynamoDB table Useful for Compliance
its Affiliates. All rights reserved. Event Sources • Can trigger off multiple different AWS events • E.g. AWS console sign in events or CloudFormation events • Can trigger a Lambda function to run on event CloudWatch Event Patterns AWS Events
its Affiliates. All rights reserved. Step Functions Task Choice Failure capture Parallel Tasks Build distributed applications using visual workflows • Automation of your organisational processes • Most management processes are multi-step so Step Functions is often a good fit • Multi-step processes can include manual approvals
its Affiliates. All rights reserved. Scheduled Events (cron) • Can run events from 1 minute up to yearly • Can run a Step Function or a Lambda function as well as many other options • Useful for things like automation and process including backup, archiving and analytics CloudWatch Scheduled Events (cron)
its Affiliates. All rights reserved. Create, publish, maintain, monitor, and secure APIs at any scale • API Gateway endpoint call can trigger a Lambda function* • Easy way to connect a third party webhook into a Lambda function • Simple webhook integration • External event triggers *API Gateway can connect to many other services, not just Lambda Amazon API Gateway HTTP API Frontend for your Backend Services
Affiliates. All rights reserved. Startup Digital only, mobile only Bank in UK • Slackbot to Automate Privilege management across accounts • Multiple AWS accounts, single user account • Slackbot to request change in privileges (e.g. in prod account) • Lambda function updates IAM privileges Amazon API Gateway Slackbot AWS Lambda AWS IAM
its Affiliates. All rights reserved. • Identify AWS events that can provide your organisation with greater insight • Develop workflows and automate around your organisations existing patterns using Step Functions and CloudWatch Scheduled Events • Utilise incoming webhooks e.g. Slackbots to allow third party tools to generate events inside your AWS environment