From 3350df50303cf466d74fc04a1e42a4fc384cbedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Tue, 23 May 2023 23:34:29 +0200 Subject: [PATCH] feat: output ID of the BinAuthz Container Analysis note & attestor With hashicorp/terraform-provider-google#7745 soon to be added, users will now be able to complete the full Binary Authorization multi-project flow via Terraform. --- modules/binary-authorization/README.md | 2 ++ modules/binary-authorization/outputs.tf | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/modules/binary-authorization/README.md b/modules/binary-authorization/README.md index c1648a0f54..87396efdd0 100644 --- a/modules/binary-authorization/README.md +++ b/modules/binary-authorization/README.md @@ -46,7 +46,9 @@ module "quality-attestor" { | Name | Description | |------|-------------| | attestor | Name of the built attestor | +| attestor\_id | ID of the built attestor | | key | Name of the Key created for the attestor | +| note\_id | ID of the created Container Analysis note | diff --git a/modules/binary-authorization/outputs.tf b/modules/binary-authorization/outputs.tf index 95d3324f5c..bfaae9c740 100644 --- a/modules/binary-authorization/outputs.tf +++ b/modules/binary-authorization/outputs.tf @@ -23,3 +23,13 @@ output "attestor" { value = google_binary_authorization_attestor.attestor.name description = "Name of the built attestor" } + +output "attestor_id" { + value = google_binary_authorization_attestor.attestor.id + description = "ID of the built attestor" +} + +output "note_id" { + value = google_container_analysis_note.build-note.id + description = "ID of the created Container Analysis note" +}