|
|
# Getting Started
|
|
|
# Hints
|
|
|
|
|
|
* Install [Google Cloud SDK and `kubectl`](https://cloud.google.com/sdk/docs/quickstarts)
|
|
|
* In [Kubernetes Engine](https://console.cloud.google.com/kubernetes/list?project=typo3-association) select the cluster you want to connect to
|
|
|
* Click `Connect`, copy the command for Command-line access and execute it in your shell (which will require you to authenticate against the Google Cloud and complain if you did not install `kubectl` yet) |
|
|
If a resource cannot be found by Terraform and this even prevents a `terraform refresh` with an error like
|
|
|
|
|
|
```
|
|
|
Error: Error refreshing state: 1 error(s) occurred:
|
|
|
* module.cloudsql.google_sql_database.mydb: google_sql_database.mydb:
|
|
|
Error reading SQL Database "" in instance "": googleapi:
|
|
|
Error 409: The instance or operation is not in an appropriate state to handle the request., invalidState
|
|
|
```
|
|
|
it can be deleted by `terraform state rm google_sql_database.mydb`
|
|
|
|
|
|
***
|
|
|
|
|
|
If the Cloud SQL database cannot be created because of an error like `google_sql_database_instance.cloudsql: Error, the name xxx is unavailable because it was used recently` a new ID for the instance can be created by `terraform state rm module.cloudsql.random_id.id && terraform apply -target=module.cloudsql.random_id.id` |
|
|
\ No newline at end of file |