From bf8632e70cd2cae119eac79a63d51d11bbf34233 Mon Sep 17 00:00:00 2001 From: Jieyu Tian Date: Wed, 16 Oct 2024 21:02:40 +0000 Subject: [PATCH 1/3] Add Apphub URI output to cloud storage --- metadata.yaml | 10 ++++++++++ outputs.tf | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/metadata.yaml b/metadata.yaml index 811900b4..ef1bb9ea 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -239,6 +239,16 @@ spec: varType: map(any) defaultValue: {} outputs: + - name: apphub_service_uri + description: Service URI in CAIS style to be used by Apphub. + type: + - object + - service_id: + - tuple + - - string + service_uri: + - tuple + - - string - name: bucket description: Bucket resource (for single use). type: diff --git a/outputs.tf b/outputs.tf index e9600ce0..98a41b3f 100644 --- a/outputs.tf +++ b/outputs.tf @@ -68,3 +68,11 @@ output "hmac_keys" { value = google_storage_hmac_key.hmac_keys[*] sensitive = true } + +output "apphub_service_uri" { + value = { + service_uri = local.buckets_list[*].self_link + service_id = local.buckets_list[*].name + } + description = "Service URI in CAIS style to be used by Apphub." +} From 2832c6a4966de7fbfcf700cb8350cce4c1e87973 Mon Sep 17 00:00:00 2001 From: Jieyu Tian Date: Thu, 17 Oct 2024 02:13:13 +0000 Subject: [PATCH 2/3] modify README.md file --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 30dbbf6f..52a04153 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ Functional examples are included in the | Name | Description | |------|-------------| +| apphub\_service\_uri | Service URI in CAIS style to be used by Apphub. | | bucket | Bucket resource (for single use). | | buckets | Bucket resources as list. | | buckets\_map | Bucket resources by name. | From a68b5e8a71b97c44e77a5cfcc11f6f7f62d76dfa Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Thu, 17 Oct 2024 08:39:44 -0700 Subject: [PATCH 3/3] Update outputs.tf --- outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index 98a41b3f..a702208c 100644 --- a/outputs.tf +++ b/outputs.tf @@ -70,7 +70,7 @@ output "hmac_keys" { } output "apphub_service_uri" { - value = { + value = { service_uri = local.buckets_list[*].self_link service_id = local.buckets_list[*].name }