Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/subhamay-cloudworks/0001-tarius-py-tf
AWS Serverless Real Time Data Load to DynamoDB using Lambda and S3 Event Source Mapping and creating the stack using HashiCorp Terraform and Language as Python
https://github.com/subhamay-cloudworks/0001-tarius-py-tf
aws-dynamodb aws-lambda aws-lambda-python aws-s3 aws-sns aws-sns-subscriptions aws-sqs github-action hashicorp-terraform
Last synced: 1 day ago
JSON representation
AWS Serverless Real Time Data Load to DynamoDB using Lambda and S3 Event Source Mapping and creating the stack using HashiCorp Terraform and Language as Python
- Host: GitHub
- URL: https://github.com/subhamay-cloudworks/0001-tarius-py-tf
- Owner: subhamay-cloudworks
- Created: 2023-08-15T17:05:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-15T19:56:20.000Z (over 1 year ago)
- Last Synced: 2024-11-09T22:48:39.223Z (about 1 month ago)
- Topics: aws-dynamodb, aws-lambda, aws-lambda-python, aws-s3, aws-sns, aws-sns-subscriptions, aws-sqs, github-action, hashicorp-terraform
- Language: HCL
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Tarius: AWS Serverlsss Real Time Data Load to DynamoDB
The user / producer uploads a csv source file to the landing zone S3 bucket. A Lambda function is triggered using S3 event notification and loads it to a DynamoDB table. The entire stack is created using HashiCorp Terraform. The SNS, S3 Bucket and DynamoDB tables are encrypted using Customer Managed KMS Key. The Lambda function is monitored using CloudWatch Alarms.
## Description
This sample project demonstrate the capability of loading a .csv file into a DynamoDB table using a Lambda function. The Lambda function is triggered using an Event Source Notification created on the S3 bucket. Once the data loads successfully into the DynamoDB table, a SNS notification is published and end users are notified via email subscriibed to the SNS Topic. CloudWatch Alarms are created to demonstrate the different metrics on the Lambda function. The S3 Bucket, SNS Topic and the DynamoDB tables are encrypted using Customer Managed KMS Key. The entire stack (excluding the KMS Key) is created using HashiCorp Terraform.
![Project Tauris - Design Diagram](https://subhamay-projects-repository-us-east-1.s3.amazonaws.com/0001-tarius/tarius-architecture-diagram.png)
![Project Tauris - Services Used](https://subhamay-projects-repository-us-east-1.s3.amazonaws.com/0001-tarius/tarius-services-used-tf.png)
## Getting Started
### Dependencies
* Create a Customer Managed KMS Key in the region where you want to create the stack.
* Modify the KMS Key Policy to let the IAM user encrypt / decrypt using any resource using the created KMS Key.
* Setup AWS CLI with an user having appropriate access to create the required resources.### Installing
* Clone the repository https://github.com/subhamay-cloudworks/0001-tarius-tf
### Executing program* From the main project diretory submit the following commands:
```
terraform initterraform validate
terraform plan
terraform apply -auto-approve
# To tear down the stack
terraform destroy -auto-approve
```## Help
Post message in my blog (https://blog.subhamay.com)
## Authors
Contributors names and contact info
Subhamay Bhattacharyya - [[email protected]](https://blog.subhamay.com)
## Version History
* 0.1
* Initial Release## License
This project is licensed under Subhamay Bhattacharyya. All Rights Reserved.
## Acknowledgments
Inspiration, code snippets, etc.
* [Denis Astahov ] (https://www.astahov.net/)
* [Derek Morgan ] (https://www.linkedin.com/in/derekm1215/)
* [Kalyan Reddy Daida ] (https://www.linkedin.com/in/kalyan-reddy-daida/)