diff --git a/examples/autokey-setup/main.tf b/examples/autokey-setup/main.tf index 67a932e..c0b86eb 100644 --- a/examples/autokey-setup/main.tf +++ b/examples/autokey-setup/main.tf @@ -15,8 +15,9 @@ */ module "autokey" { - source = "terraform-google-modules/kms/google//modules/autokey" - version = "3.1.0" + //source = "terraform-google-modules/kms/google//modules/autokey" + //version = "3.1.0" + source = "../../modules/autokey" autokey_kms_project_id = var.kms_project_id autokey_folder_number = var.folder_id diff --git a/examples/bucket-setup-using-autokey/main.tf b/examples/bucket-setup-using-autokey/main.tf index 9728d9a..47ce2ff 100644 --- a/examples/bucket-setup-using-autokey/main.tf +++ b/examples/bucket-setup-using-autokey/main.tf @@ -28,7 +28,7 @@ resource "google_kms_key_handle" "bucket_keyhandle" { project = var.resource_project_id name = "${var.bucket_name_prefix}-${random_string.suffix.result}" location = var.bucket_location - resource_type_selector = var.resource_type_selector + resource_type_selector = var.bucket_resource_type_selector lifecycle { ignore_changes = [name] diff --git a/examples/bucket-setup-using-autokey/variables.tf b/examples/bucket-setup-using-autokey/variables.tf index f6916d4..697bbf1 100644 --- a/examples/bucket-setup-using-autokey/variables.tf +++ b/examples/bucket-setup-using-autokey/variables.tf @@ -24,7 +24,7 @@ variable "bucket_name_prefix" { description = "The storage bucket created will have name {bucket_name_prefix}-{random-suffix}" } -variable "resource_type_selector" { +variable "bucket_resource_type_selector" { type = string description = "The resource type selector for bucket" } diff --git a/test/setup/outputs.tf b/test/setup/outputs.tf index 63f42bc..06d0395 100644 --- a/test/setup/outputs.tf +++ b/test/setup/outputs.tf @@ -14,18 +14,30 @@ * limitations under the License. */ -output "project_id" { +output "kms_project_id" { value = module.project_ci_kms.project_id } -output "autokey_resource_project_id" { +output "resource_project_id" { value = module.autokey_resource_project.project_id } -output "autokey_resource_project_number" { +output "resource_project_number" { value = module.autokey_resource_project.project_number } +output "bucket_name_prefix" { + value = "ci-kms-bucket" +} + +output "bucket_resource_type_selector" { + value = "storage.googleapis.com/Bucket" +} + +output "bucket_location" { + value = "us-central1" +} + output "sa_key" { value = google_service_account_key.int_test.private_key sensitive = true