mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
For some reason the auto-formatting didn't happen when these files are first checked in. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191589487
15 lines
519 B
HCL
15 lines
519 B
HCL
resource "google_kms_key_ring" "proxy_key_ring" {
|
|
name = "${var.proxy_key_ring}"
|
|
location = "global"
|
|
}
|
|
|
|
resource "google_kms_crypto_key" "proxy_key" {
|
|
name = "${var.proxy_key}"
|
|
key_ring = "${google_kms_key_ring.proxy_key_ring.id}"
|
|
}
|
|
|
|
resource "google_kms_crypto_key_iam_member" "ssl_key_decrypter" {
|
|
crypto_key_id = "${google_kms_crypto_key.proxy_key.id}"
|
|
role = "roles/cloudkms.cryptoKeyDecrypter"
|
|
member = "serviceAccount:${google_service_account.proxy_service_account.email}"
|
|
}
|