Skip to content

mtshikomba/covid_data_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Descripion

Architechure

Configuration

  • Since this is public data anyone has access to this file object and they can download it.

How to use this project

  • For anyone who wants to reproduce this project, you can do so by following the instructions below:
  • Create a IAM Role on the AWS Console, give it the required permissions you can create a policy and attached it to the role.
  • $
  • $ pip install -r requirements.txt -t .
  • $ zip function.zip ./ -$ aws lambda create-function --function-name --zip-file fileb://function.zip --handler main.main --runtime python3.6 --timeout 360 --memory-size 1024 --role arn:aws:iam:::role/ --environment Variables={API_TOKEN=}
  • Run/Test the function $ aws lambda invoke --function-name out.json
  • Create a rule for the function using AWS Cloud Watch and set it to run after every 24 hours or whenever you wish to.
  • Attach the Cloud Watch Event to the Lambda Function and everything should be setuo and good to go.

Help is Here!

  • Please reach out to @dev-mtshikomba or @pchundur for assistance.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages