Giter Club home page Giter Club logo

cdk-quest's Introduction

CDK Quest

Architecture

Data Pipeline

Contains the core data pipeline resource setup in AWS which includes Glue, SQS and various S3 Buckets.

CDK Setup

From the quest-data-pipeline/ directory, run the following commands:

npm install -g cdk
npm run cdk deploy -- --parameters bucketNamePrefix=<prefix>

If the aws account you're deploy to was never boostrapped before, run the following command before deploying:

npm run cdk bootstrap aws://<account-id>/us-east-1

Vendor Bootstrap

Contains resources for bootstrapping a new vendor allowing the aws account to upload files to the data pipeline account.

CDK Setup

From the quest-vendor-bootstrap/ directory, run the following commands:

npm install -g cdk
npm run cdk deploy -- --parameters accountId=<account> --parameters vendorName=<vendor>

Demo Scripts

Examples are located in the scripts/ directory. The following command can be used for uploading a file to the data pipeline (replacing parameters with actual resource names/urls):

sh uploadFile.sh test-vendor test-vendor-bucket https://sqs.us-east-1.amazonaws.com/1234567890/test-vendor-queue.fifo

To see a very basic example using connectors, execute:

sh uploadCSV.sh test-vendor test-vendor-bucket $replace_with_QuestDataPipelineStack.csvqueueUrl

The corresponding job will connect and transform the file from .csv to .json

cdk-quest's People

Contributors

d9i avatar npc-code avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cdk-quest's Issues

Automate Glue Job Executions

Leverage CloudWatch Metrics to define thresholds when we should run the data pipeline glue job. The idea would be to use the SQS queue num message size as the metric. The alarm would then start the job.

Account/Vendor Bootstrap Setup

Setup a new CDK Stack for onboarding a new vendor (aws account). Basically this script would do 2 things:

  • Allow the aws account to send messages to the vendor queue
  • Allow the aws account to upload file to the vendor s3 bucket (under a specific prefix)

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.