- export GOOGLE_CREDENTIALS=$(pwd)/credential.json (backend on terraform start before the core services the credential file can't be dynamic)
- my-infrastructure/infrastructure/environment/sql-db (create cloud sql service instance)
- my-infrastructure/infrastructure/environment/gke (create Kubernetes Engine instance, dependent of 1 )
- my-infrastructure/services/first-service (install first-service service on cluster, dependent of 1&2)
- my-infrastructure/services/second-service (install second-service service on cluster, dependent of 1&2)
- my-infrastructure/services/third-service (install third-service on cluster, dependent of 1,2,3,4)
To run any of the above, execute the following commands in the appropriate project sub-directory:
terraform init
terraform workspace new [dev|int|prod|<user>]
terraform plan
terraform apply