BMH-admin-portal
Shared Codebase for the Biomedical Research Hub Initiative. This repository contains information related to the BRH Admin Portal.
Developer Documentation
An overview of the application and infrastructure (including architecture diagram) can be found:
Deployment Instructions
OCC/DDI Account Provisioning Infrastructure
The first step in the process is to deploy the OCC/DDI Lambda for creating a new workspace. The code for this is portion can be found on the occ-data repo. As the time of writing this, we should be using the feature/ctds-brh-integration
branch.
git clone git@github.com:occ-data/ddi-pay-per-compute.git
git checkout feature/ctds-brh-integration
cd ddi-pay-per-compute/account_creation_automation/backend
# Create a zip file for deploying the Account creation lambda
zip -r AccountCreationLambda.zip AccountCreationLambda.py
# Create a bucket to upload the deployment artifacts to.
# This should be unique.
aws s3 mb s3://occ-account-deploy
aws s3 sync . s3://occ-account-deploy
You should then be ready to deploy the CloudFormation template AccountCreationLambdaSetup-cfn.yaml
. This can be done using the AWS Console:
- Go to CloudFormation within the console and create a stack using new resources.
- Enter the
https
url for theAccountCreationLambdaSetup-cfn.yaml
just uploaded. - Fill out the required parameter:
- AccountAdministrator - IAM arn for Admin (i.e
arn:aws:iam::<ACCOUNTID>:role/Admin
) - AccountVendingMachineName - Name to give the Vending Machine (ServiceCatalog)
- AccountVendingMachineSupportEmail - Will be displayed as part of the Vending Machine product (any email address)
- ArtifactBucketName - The bucket name from above where deployment artifacts are located (i.e. occ-account-deploy, no
s3://
orhttps://
prefixes) - ServiceCatalogTag - Tag used for the service catalog infrastructure (not used for BRH, but required in the CloudFormation)
- AccountAdministrator - IAM arn for Admin (i.e
Deploy BRH Admin Portal Backend
This will deploy the backend API which will handle requests. The deployment instructions can be found here.
Deploy BRH Admin Portal Frontend
This will deploy the front end React application. The deployment instructions can be found here.