Streaming Amazon DynamoDB data into a centralized data lake We use an AWS Key Management Service (AWS KMS) key for server-side encryption
Tag: AWS
AWS Serverless Notes YAML…etc
Serverless guide This is slightly different than regular cloudformation yaml file syntax. To include other files in the main yaml
Securely Calling AWS Lambda from React
Use API Gateway Lambda authorizers A Lambda authorizer is useful if you want to implement a custom authorization scheme that
Keeping Lambda Warm
Reducing cold starts with Provisioned Concurrency Understanding how functions warmers work However, this is not a guaranteed way to reduce
Server side events
Event Source API An EventSource instance opens a persistent connection to an HTTP server, which sends events in text/event-stream format. The connection remains open until closed by calling EventSource.close().
Websocket
AWS serverless documentation Authorization Using API Gateway blog Iam Role Events handled by CreateSocket labmda: Connect Do Not Message the
Step Function and Cloudwatch Log
https://www.davehall.com.au/blog/2020/07/10/logging-step-functions-cloudwatch/ AWSTemplateFormatVersion: ‘2010-09-09’ Description: StepFunction with Logging Example. Parameters: Resources: StepFunctionExecRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: ‘2012-10-17’ Statement: – Effect:
SQS subscribes to SNS topic
Resources: SNSTopic: Type: AWS::SNS::Topic Properties: TopicName: name KmsMasterKeyId: !ImportValue kms-key-id SQSQueue: Type: AWS::SQS::Queue SNSSubscription: Type: AWS::SNS::Subscription Properties: TopicArn: !Ref SNSTopicArn
Lambda inserting into SQS using message timer
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html#sendMessage-property const AWS = require(‘aws-sdk’); exports.handler = async (event, context) => { // Get the SQS client. const sqs =
Step function history event limitation
One approach to avoid the 25k history event limit is to add a choice state in your loop that takes