Skip to content

raducrs/tableta-inmultirii-aws-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tableta Inmultirii AWS Lambda

Lambda AWS code and configuration for Tableta Inmultirii

The code for AWS Lambda and role definition were extracted using utilities in raducrs/aws-lambda-save-configuration

This AWS lambda function were published also to serve as examples in creating a serveless architecture in AWS

Features by technology

DynamoDB

getItem

updateItem

putItem

query

batchWriteItem

deleteItem

batchGetItem

stream event

Lambda

InvokeAsync

OpenCV

AWS SES

Create Template

Send Email Template

S3

getSignedUrlPromise

put_object

notification of upload to bucket

Cognito

Notification

Various

Image Processing

UUID generator

Decode JWT

Roles

For the description of the policies you need to check the Cloud Formation Repo and the created resources. The S3 and DynamoDB policies are created and attached via templates.

TI-APIGatewayS3

Allows API Gateway to read S3 content

Attached policies:

AmazonAPIGatewayPushToCloudWatchLogs
TI-S3PublicAddJSON-Policy

Assume role:

apigateway.amazonaws.com

TI-LambdaGetUploadURL

Retrieves an upload url into the bucket

Attached policies

AWSOpsWorksCloudWatchLogs
TI-UploadToPrivateFolder-Policy

Assume role:

lambda.amazonaws.com

TI-LambdaImageChalk

Allows Lambda functions to call AWS services on your behalf.

Attached policies:

AWSOpsWorksCloudWatchLogs
TI-WriteToPublicS3
TI-GetLayerChalkBoard-Policy
TI-ReadUploadImages-Policy

Assume role:

lambda.amazonaws.com

TI-LambdaReadDB

Allows Lambda functions to read DynamoDB tables

Attached policies:

AWSOpsWorksCloudWatchLogs
TI-DynamoDBRead-Policy
TI-InvokeLambda-Policy

Assume role:

lambda.amazonaws.com

TI-LambdaReadWriteDB

Allows Lambda functions to write and read to/from DynamoDB

Attached policies:

AWSOpsWorksCloudWatchLogs
TI-SESCreateUpdateSend
TI-DynamoDBRead-Policy
TI-DynamoDBWrite-Policy

Assume role:

lambda.amazonaws.com

TI-LambdaWriteDB

Allows Lambda functions to write to DynamoDB

Attached policies:

AWSOpsWorksCloudWatchLogs
TI-DynamoDBWrite-Policy
TI-InvokeLambda-Policy

Assume role:

lambda.amazonaws.com

TI-SlackPostRole

Allow post to slack

Attached policies

TI-DynamoDB-TargetedDonationsStream-Policy

Assume role:

lambda.amazonaws.com

About

Lambda AWS code and configuration for Tableta Inmultirii

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published