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 inBUCKET_NAME
: target bucket name where the function will place the fileFILE_KEY
: key (path) under which the function will place the downloaded fileDATA_URL
: URL of the file to downloadACCOUNT_ID
: AWS account number (needed to construct ARNs)ROLE_NAME
: name of the role to be created for and used by the Lambda functionFUNCTION_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 functionlambda/make_package.sh
to create a .zip file containing the lambda Python code and its dependencieslambda/create_lambda.sh
to deploy the Lambda function on AWS andlambda/test_lambda.sh
to test itschedule/create_event_rule.sh
to create a daily trigger event and attach the Lambda function as a target
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.