|
|
# Hints
|
|
|
|
|
|
If you get errors like this
|
|
|
|
|
|
If you get an error like
|
|
|
```
|
|
|
Error: module.cloudsql.google_sql_database_instance.cloudsql: 1 error(s) occurred:
|
|
|
* module.cloudsql.google_sql_database_instance.cloudsql: key "default" does not exist in map var.sql_instance_size in:
|
|
|
key "default" does not exist in map var.sql_instance_size in:
|
|
|
${var.sql_instance_size[terraform.workspace]}
|
|
|
|
|
|
Error: module.gke.google_container_cluster.primary: 1 error(s) occurred:
|
|
|
* module.gke.google_container_cluster.primary: key "default" does not exist in map var.gke_num_nodes in:
|
|
|
${var.gke_num_nodes[terraform.workspace]}
|
|
|
```
|
|
|
you are still in the default workspace. Change to dev by `terraform workspace select dev` or create it `terraform workspace new dev` if you didn't yet.
|
|
|
|
|
|
***
|
|
|
If you get an error like
|
|
|
```
|
|
|
kubernetes_secret.credentials: Get https://35.198.136.56/api/v1/namespaces/default/secrets/hackmd-credentials: x509: certificate signed by unknown authority
|
|
|
```
|
|
|
you need to fetch the credentials for the server. `gcloud init` to select the `development` project, then `gcloud container clusters list` to see the clusters, then `gcloud container clusters get-credentials <CLUSTERNAME> --zone europe-west3-a`
|
|
|
|
|
|
***
|
|
|
|
|
|
If a resource cannot be found by Terraform and this even prevents a `terraform refresh` with an error like
|
... | ... | |