Code Monkey home page Code Monkey logo

gettingstartedaws-2021's Introduction

Bunch of small demos


S3 Demo

  1. To to the S3 Demo Directory

    • cd /home/ec2-user/environment/GettingStartedAWS-2021/myS3CloudFrontDemo
  2. Create a bucket

    • aws s3 mb s3://mys3demo-2021-123 # replace with your bucket name
  3. Upload the index.html file into the bucket

    • aws s3 cp index.html s3://mys3demo-2021-123/index.html
  4. Open Console and go to S3

Lambda Demo

  1. Install Chalice

    • sudo pip3.7 install chalice
  2. Create a Chalice Project

    • chalice new-project myLambdaDemo
    • cd myLambdaDemo
  3. Edit "requirements.txt"

    • echo "boto3" > requirements.txt
    • echo "Pillow" >> requirements.txt
  4. Edit the app.py code.

    • Input Bucket : demo-bucket-input-2021
    • Output Bucket : demo-bucket-output-2021
  5. Install the packages

    • sudo pip3.7 install -r requirements.txt
  6. Deploy the app.

    • chalice deploy
  7. Delete the aoo

    • chalice delete

Glue/Athena Demo

Glue Data Catalog and Athena

  1. Store File in S3
  2. Collect metabada with Glue ETL
  3. Run Query using Athena

  1. Create a S3 bucket (Already Created : "aws-glue-suman")

    • Upload the raw data : yellow_tripdata_2020-06.csv
  2. Open Glue

    • Crawler > Name "taxi_data_crawler"
    • Path > s3://aws-glue-suman/
    • IAM Role > default
    • DB Name > mydb
    • Prefix > taxi_
  3. Open Athena

SELECT * FROM "mydb"."taxi_aws_glue_suman" limit 10;

SELECT * FROM "mydb"."taxi_aws_glue_suman" WHERE payment_type = 2 limit 10;

gettingstartedaws-2021's People

Contributors

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