diff --git a/examples/autokey_setup/outputs.tf b/examples/autokey_setup/outputs.tf index 6f5d206..f6e84fe 100644 --- a/examples/autokey_setup/outputs.tf +++ b/examples/autokey_setup/outputs.tf @@ -18,3 +18,8 @@ output "autokey_config_id" { description = "An Autokey configuration identifier." value = module.autokey.autokey_config_id } + +output "kms_project_id" { + description = "The ID of the project in which kms keyring and kms keys will be provisioned by autokey." + value = var.kms_project_id +} diff --git a/modules/autokey/main.tf b/modules/autokey/main.tf index 1a8001f..dcca5e0 100644 --- a/modules/autokey/main.tf +++ b/modules/autokey/main.tf @@ -19,4 +19,5 @@ resource "google_kms_autokey_config" "primary" { folder = var.autokey_folder_number key_project = "projects/${var.autokey_kms_project_id}" + depends_on = [time_sleep.wait_srv_acc_permissions] }