Upload Service
Development Notes
Configuring Environment for Existing Deployment
Setting up local environment requires exactly the following versions of the following tools:
-
Terraform v0.11.13
To easily facilitate switching between versions of Terraform, consider installing tools like
tfswtich
. -
Python 3.6
For switching Python environments, use tools like
pyenv
,virtualenv
, etc. or combinations of such.
Setting Up the environment
- Clone or add remote reference to the Upload Service repository.
- Install required Python modules.
pip install -r requirements.txt
pip install -r requirements-dev.txt
- Apply environment config:
source config/environment <dev|staging|prod>
- Go to
terraform/envs/<dev|staging|prod>
. - Retrieve previously defined Terraform variables:
make retrieve-vars
- Finally, initialise local Terraform installation:
make init
Making changes to terraform config
- After making changes to terraform config, go to
terraform
dircd <base-dir>/upload-service/terraform make apply
- Test the changes
- Go to
terraform/envs/<dev|staging|prod>
make upload-vars