Skip to content

Commit

Permalink
fix: Make key handle sweepable (GoogleCloudPlatform#11905)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanini-ciandt authored and karolgorc committed Oct 11, 2024
1 parent f068449 commit 5dcb844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mmv1/products/kms/KeyHandle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ examples:
primary_resource_id: 'example-keyhandle'
min_version: 'beta'
vars:
folder_name: 'my-folder'
key_project_name: 'key-proj'
resource_project_name: 'resources'
resource_project_name: 'res-proj'
test_env_vars:
org_id: 'ORG_ID'
billing_account: 'BILLING_ACCT'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create Folder in GCP Organization
resource "google_folder" "autokms_folder" {
provider = google-beta
display_name = "folder-example"
display_name = "{{index $.Vars "folder_name"}}"
parent = "organizations/{{index $.TestEnvVars "org_id"}}"
deletion_protection = false
}
Expand Down Expand Up @@ -89,7 +89,7 @@ resource "time_sleep" "wait_autokey_config" {
resource "google_kms_key_handle" "{{$.PrimaryResourceId}}" {
provider = google-beta
project = google_project.resource_project.project_id
name = "example-key-handle"
name = "tf-test-key-handle"
location = "global"
resource_type_selector = "storage.googleapis.com/Bucket"
depends_on = [time_sleep.wait_autokey_config]
Expand Down

0 comments on commit 5dcb844

Please sign in to comment.