Skip to content

Commit

Permalink
fix: Create dependency with grant (#46)
Browse files Browse the repository at this point in the history
* added a dependencia between the kims and the grant access

* moved the comment
  • Loading branch information
LuizSDCit authored Aug 11, 2021
1 parent 9488fcd commit 9f4129d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,48 @@
output "keyring" {
description = "Self link of the keyring."
value = google_kms_key_ring.key_ring.self_link

# The grants are important to the key be ready to use.
depends_on = [
google_kms_crypto_key_iam_binding.owners,
google_kms_crypto_key_iam_binding.decrypters,
google_kms_crypto_key_iam_binding.encrypters,
]
}

output "keyring_resource" {
description = "Keyring resource."
value = google_kms_key_ring.key_ring

# The grants are important to the key be ready to use.
depends_on = [
google_kms_crypto_key_iam_binding.owners,
google_kms_crypto_key_iam_binding.decrypters,
google_kms_crypto_key_iam_binding.encrypters,
]
}

output "keys" {
description = "Map of key name => key self link."
value = local.keys_by_name

# The grants are important to the key be ready to use.
depends_on = [
google_kms_crypto_key_iam_binding.owners,
google_kms_crypto_key_iam_binding.decrypters,
google_kms_crypto_key_iam_binding.encrypters,
]
}

output "keyring_name" {
description = "Name of the keyring."
value = google_kms_key_ring.key_ring.name

# The grants are important to the key be ready to use.
depends_on = [
google_kms_crypto_key_iam_binding.owners,
google_kms_crypto_key_iam_binding.decrypters,
google_kms_crypto_key_iam_binding.encrypters,
]
}

0 comments on commit 9f4129d

Please sign in to comment.