Coder Social home page Coder Social logo

subhamay-cloudworks / 0034-aster-cft Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 43 KB

Loading data into DynamoDB Global Table with KMS encryption enabled using Kinesis-Lambda

Python 100.00%
aws-dyanmodb aws-ec2-intances aws-iam-policies aws-iam-roles aws-kinesis-stream aws-python-lambda aws-sqs dead-letter-queue

0034-aster-cft's Introduction

Project Aster: Loading data into DynamoDB Global using Kinesis Data Stream and Lambda

An EC2 instances is used as a data producer using Kinesis agent.

Description

This sample project to demonstratte the capability of data produced using Kineis agent running in an EC2 instance and loading the same to a DynamoDB global table using Lambda. An SQS is used a error destination. The DynamoDB global table, Kinesis Data Stream and SQS queue are all encrypted using Customer Managed KMS Keys

Project Tauris - Design Diagram

Getting Started

Dependencies

  • None

Installing

  • Clone the repository.
  • Create a S3 bucket and make it public.
  • Create the folders - 0034-aster/cft/nested-stacks/, 0034-aster/cft/cfn/, 0034-aster/code/python/, 0034-aster/code/log-generator/
  • Upload the following YAML templates to 0034-aster/cft/nested-stacks/
    • ec2-instance-stack.yaml
    • dynamodb-stack.yaml
    • kinesis-data-stream-stack.yaml
    • sqs-stack.yaml
    • iam-role-stack.yaml
  • Upload the following YAML templates to 0034-aster/cft/
    • aster-root-stack.yaml
  • Remember to replace the bucket name in the YAML root stack with your public bucket.
  • Zip and Upload the Python file aster.py to 0034-aster/code/python
  • Upload the OnlineRetail.csv to the folder /0034-aster/code/log-generator/
  • Upload the file log-generator.py and OnlineRetail.py to 0034-aster/code/log-generator/
  • Create the entire using by using the root stack template 0034-aster/cft/cfn/aster-root-stack.yaml by providing the required parameters and the s3 cross stack name created in the previous step.

Executing program

  • Create the stack using the root stack template cfn-aster-root-stack.yaml
  • SSH to the EC2 instance and run the log generator python script
sudo ./LogGenerator.py <Any Random Number less than 50000>

Help

Post message in my blog (https://blog.subhamay.com)

Authors

Contributors names and contact info

Subhamay Bhattacharyya - [email protected]

Version History

  • 0.1
    • Initial Release

License

This project is licensed under Subhamay Bhattacharyya. All Rights Reserved.

Acknowledgments

Inspiration, code snippets, etc.

0034-aster-cft's People

Contributors

subhamay-cloudworks avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.