module KMS autokey context namespace fixes (#3521)
This commit is contained in:
committed by
GitHub
parent
1f0940a716
commit
525b7be739
@@ -831,7 +831,7 @@ module "autokey-vm-example" {
|
||||
}
|
||||
encryption = {
|
||||
encrypt_boot = true
|
||||
kms_key_self_link = "$kms_keys:autokey/default"
|
||||
kms_key_self_link = "$kms_keys:autokeys/default"
|
||||
}
|
||||
}
|
||||
# tftest modules=1 resources=4
|
||||
@@ -1178,7 +1178,7 @@ module "sole-tenancy" {
|
||||
| [iam](variables.tf#L243) | IAM bindings in {ROLE => [MEMBERS]} format. | <code>map(list(string))</code> | | <code>{}</code> |
|
||||
| [instance_schedule](variables.tf#L249) | Assign or create and assign an instance schedule policy. Either resource policy id or create_config must be specified if not null. Set active to null to dtach a policy from vm before destroying. | <code title="object({ active = optional(bool, true) description = optional(string) expiration_time = optional(string) start_time = optional(string) timezone = optional(string, "UTC") vm_start = optional(string) vm_stop = optional(string) })">object({…})</code> | | <code>null</code> |
|
||||
| [instance_type](variables.tf#L273) | Instance type. | <code>string</code> | | <code>"f1-micro"</code> |
|
||||
| [kms_autokeys](variables.tf#L279) | KMS Autokey key handles. If location is not specified it will be inferred from the zone. Key handle names will be added to the kms_keys context with an `autokey/` prefix. | <code title="map(object({ location = optional(string) resource_type_selector = optional(string, "compute.googleapis.com/Disk") }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [kms_autokeys](variables.tf#L279) | KMS Autokey key handles. If location is not specified it will be inferred from the zone. Key handle names will be added to the kms_keys context with an `autokeys/` prefix. | <code title="map(object({ location = optional(string) resource_type_selector = optional(string, "compute.googleapis.com/Disk") }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [labels](variables.tf#L297) | Instance labels. | <code>map(string)</code> | | <code>{}</code> |
|
||||
| [metadata](variables.tf#L303) | Instance metadata. | <code>map(string)</code> | | <code>{}</code> |
|
||||
| [metadata_startup_script](variables.tf#L309) | Instance startup script. Will trigger recreation on change, even after importing. | <code>string</code> | | <code>null</code> |
|
||||
|
||||
@@ -37,7 +37,8 @@ locals {
|
||||
}
|
||||
}
|
||||
ctx_kms_keys = merge(local.ctx.kms_keys, {
|
||||
for k, v in google_kms_key_handle.default : "$kms_keys:autokey/${k}" => v.kms_key
|
||||
for k, v in google_kms_key_handle.default :
|
||||
"$kms_keys:autokeys/${k}" => v.kms_key
|
||||
})
|
||||
ctx_p = "$"
|
||||
gpu = var.gpu != null
|
||||
|
||||
@@ -277,7 +277,7 @@ variable "instance_type" {
|
||||
}
|
||||
|
||||
variable "kms_autokeys" {
|
||||
description = "KMS Autokey key handles. If location is not specified it will be inferred from the zone. Key handle names will be added to the kms_keys context with an `autokey/` prefix."
|
||||
description = "KMS Autokey key handles. If location is not specified it will be inferred from the zone. Key handle names will be added to the kms_keys context with an `autokeys/` prefix."
|
||||
type = map(object({
|
||||
location = optional(string)
|
||||
resource_type_selector = optional(string, "compute.googleapis.com/Disk")
|
||||
|
||||
Reference in New Issue
Block a user