Skip to content

tha00/covid19-oe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

COVID-19 in Austria

Data

The data is obtained from Open Data Austria as a .csv file. An AWS Lambda function that downloads the file to an S3 bucket along with scripts to deploy it using the AWS CLI are provided. After having set the required environment variables

  • REGION: AWS region the Lambda function should be created in
  • BUCKET_NAME: target bucket name where the function will place the file
  • FILE_KEY: key (path) under which the function will place the downloaded file
  • DATA_URL: URL of the file to download
  • ACCOUNT_ID: AWS account number (needed to construct ARNs)
  • ROLE_NAME: name of the role to be created for and used by the Lambda function
  • FUNCTION_NAME: name of the Lambda function that will be created

under ./data, run

  • role/create_iam_role.sh to create the role that will give S3 access to the Lambda function
  • lambda/make_package.sh to create a .zip file containing the lambda Python code and its dependencies
  • lambda/create_lambda.sh to deploy the Lambda function on AWS and lambda/test_lambda.sh to test it
  • schedule/create_event_rule.sh to create a daily trigger event and attach the Lambda function as a target

Streamlit app

Under ./streamlit, there is a Streamlit application loading and presenting the data. A small setup script to host the app on AWS EC2 is also included.

screenshot

Resources

About

Simple COVID-19 Streamlit application.

Resources

Stars

Watchers

Forks