Skip to content

Commit

Permalink
feat: output ID of the BinAuthz Container Analysis note & attestor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mmalecki committed Jun 5, 2023
1 parent 2fe1715 commit 3350df5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/binary-authorization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

Expand Down
10 changes: 10 additions & 0 deletions modules/binary-authorization/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 3350df5

Please sign in to comment.