Skip to content

ghrcdaac/fcx-subsetting-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to deploy the Subsetting Tool

It is supposed that the user has some prior knowledge about aws.

Pre-requisites

Deployement Details

  1. Export env variables for keys mentioned in .env.example into shell session.
    • example: export TF_VAR_aws_creds_path="**********" TF_VAR_aws_region="**********" TF_VAR_accountId="**********"
  2. Deploy using bash deploy.sh. The bash script does the following things:
    • terraform init
    • terrafrom plan
    • terraform apply
  3. Use the subsettingTool.postman_collection.json postman collection to test.

After terraform finishes building the Subsetting tool infrastructure, it outputs env varaibles that can be used in the frontend.

  • For <sensitive> as output value, use terraform output <key_name>

To remove the Subsetting Tool

  • Use terraform destroy

Details on Subsetting tool

The subsetting tool has 3 parts:

  1. Core subsetting tool: This part deals with subsetting the actual instrument values. It uses multiple subsetting lambda workers for different instruments. Raw data is pulled first from s3 SOURCE_BUCKET, processed and is finally stored in DESTINATION_BUCKET (SUBSET_OUTPUT_BUCKET)

  2. Progress bar: This part deals with setting up two way communication between frontend and subset workers using Websockets. It uses Websocket IDs to differentiate connections uniquely in a serverless architecture. Dynamodb is used.

  3. Subsets direct download: This part deals with exposing the privately stored subsets and making it directly downloadable using the CDN (Cloudfront).

The codebase is segregated based on the above mentioned parts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •