Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.43 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.43 KB

Resources Portal Infrstructure

The Resources Portal is configured to run in AWS. You will need to have your AWS credentials configured or make them available as environment variables.

The configuration is written in terraform. You will need to have it installed to be able to deploy.

All commands from this README should be run from the infrastructure/ directory.

Deployment

The staging stack will be redeployed upon every merge to dev. The production stack has not yet been configured.

A dev stack can be deployed from a local machine. The deploy script will look for a private SSH key named resources-portal-key.pem in the infrastructure/ directory. You will need to create an SSH key, name it that, and paste the public key for it into security.tf (replacing the existing one which is used for deploys to the cloud.

python3 deploy.py -d [dockerhub-repo] -e dev -u [username] -v v0.0.0

Once your deployment is complete it will output the elastic_ip_address like: elastic_ip_address = X.X.X.X To make requests against the API that you deployed see the READEME for the API.

Subsequent deploys to the same stack will use the same elastic IP address.

Teardown

You can destroy an existing stack with:

python3 destroy_terraform.py -e dev -u [username]

The username you use to destroy should match the one you supplied to deploy.py.