This project contains the AWS CDK code to set up Connected Cloud for Basepair.
- Connected Cloud is a solution that allows you to run NSG workflows on Basepair platform with your own AWS account.
- Customer will interact with Basepair platform to upload samples and start workflows.
- Basepair platform will then connect with customer's AWS account to fetch samples, run workflows and upload results.
- Customer will be able to view results on Basepair platform.
sequenceDiagram
actor User
box rgb(165,188,250) Basepair AWS Cloud
participant App
end
box rgb(252,192,131) Customer AWS Cloud
participant Storage
participant Compute
end
User->>App: Upload Samples
App->>Storage: Store Samples
User->>App: Start a Workflow
App->>Compute: Start EC2 Instance
Compute->>Storage: Fetch Samples
Compute->>Compute: Execute Workflow
Compute->>Storage: Upload Results
App->>Storage: Fetch Results
App->>User: Display Results
- Download and install AWS CLI
- Download and install CDK CLI
- Configure AWS CLI with your AWS account credentials
- Bootstrap your AWS account with CDK CLI
cdk bootstrap aws://<ACCOUNT-NUMBER>/<REGION>
- Make sure you have permissions to create IAM roles and policies in your AWS account
- Create python virtual environment and activate it
python3 -m venv venv
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- If you want to use
Connected cloud with Health Omics
, please click on theLaunch Stack
button above and follow the instructions
- If you want to use
Connected cloud without Health Omics
, please click on theLaunch Basepair Stack
button above and follow the instructions
- Request
BasepairAccountId
andBasepairRoleName
from Basepair Team - Run the below command and wait for the deployment to complete
cdk deploy \ --parameters BasepairAccountId=<Basepair Account Id> \ --parameters BasepairRoleName=<Basepair Role Name> \ --require-approval never \ --outputs-file cdk.out.json
- After the above command is successfully completed, Please share the
cdk.out.json
file with Basepair Team - For any support, please reach out to Basepair Team