-
Notifications
You must be signed in to change notification settings - Fork 85
Fixes found while spinning up a new project #262
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: icco, mikehelmick The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -60,5 +60,5 @@ fi | |||
|
|||
gcloud builds submit "${ROOT}" \ | |||
--config "${ROOT}/builders/migrate.yaml" \ | |||
--substitutions "_DB_CONN=${DB_CONN},_DB_APIKEY_DATABASE_KEY=${DB_APIKEY_DATABASE_KEY},_DB_APIKEY_SIGNATURE_KEY=${DB_APIKEY_SIGNATURE_KEY},_DB_ENCRYPTION_KEY=${DB_ENCRYPTION_KEY},_DB_NAME=${DB_NAME},_DB_PASSWORD=${DB_PASSWORD},_DB_USER=${DB_USER}" \ | |||
--substitutions "_DB_CONN=${DB_CONN},_DB_APIKEY_DATABASE_KEY=${DB_APIKEY_DATABASE_KEY},_DB_APIKEY_SIGNATURE_KEY=${DB_APIKEY_SIGNATURE_KEY},_DB_ENCRYPTION_KEY=${DB_ENCRYPTION_KEY},_DB_NAME=${DB_NAME},_DB_PASSWORD=${DB_PASSWORD},_DB_USER=${DB_USER},_DB_DEBUG=${DB_DEBUG},_LOG_DEBUG=${LOG_DEBUG}" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really wish Cloud Build let you specify --substitutions multiple times to avoid this insanely long line...
@@ -233,14 +233,18 @@ resource "null_resource" "migrate" { | |||
DB_CONN = google_sql_database_instance.db-inst.connection_name | |||
DB_ENCRYPTION_KEY = google_kms_crypto_key.database-encrypter.self_link | |||
DB_NAME = google_sql_database.db.name | |||
DB_PASSWORD = google_secret_manager_secret_version.db-secret-version["password"].name | |||
DB_PASSWORD = "secret://${google_secret_manager_secret_version.db-secret-version["password"].id}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmmmmm.... this change is correct, but how did it work before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was puzzling me too. But it was late and I was all shrugs. Maybe no one has run this step in a long time?
Proposed Changes
secret://
Release Note