Coder Social home page Coder Social logo

7park-walmart's Introduction

7Park Data - Walmart

Task2

loaddata.py

Does a reverse engineer to get the stores related to zipcodes.

  • For each zipcode based on the US postal service list
    • Get all the nearby stores and create a dictionary (key=store, value=zip).
    • Insert the dictionary in dynamoDB table walmart.

Requeriments:

  • Python 3.7
  • Libraries requested in the import installed (pip install)
  • AWS CLI installed and configured with credentials to access DynamoDB.
  • Create a table called 'walmart' in DynamoDB with 'no' numeric as hash key.
  • You need a Walmart api key save in a file config.py (not uploaded for security)

readdata.py

Function that returns the zipcode of a given store id.

Requirements:

  • This is the source of what is running in AWS Lambda.
  • AWS Lambda function need to have access to DynamoDB table walmart.
  • AWS API Gateway configured to invoke the lambda function.

Ex: https://ewn7lusnh8.execute-api.us-east-1.amazonaws.com/PROD/?no=994

Task 1

###Overall idea

  • AWS Lambda function is triggered when file is saved into S3.
  • The Lambda function will indentify in the AWS Glue Metadata catalog what type of transformation is.
  • The Lambda function will trigger the right ETL job.
  • The ETL job is written in pyhon and it will enrich the file.
  • Results will be saved in Redshift.

Notes:

  • Perhaps other elements are present in the AWS Glue piece such as a DynamoDB with zipcode, etc. They are left out of the diagram because this is a generic solution.
  • AWS Glue is a fully managed, scale-out Apache Spark environment. It's serverless from our point of view.

Diagram

ETL Event driven

7park-walmart's People

Contributors

mrestuccia avatar

Watchers

 avatar  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.