diff --git a/README.md b/README.md index 30dbbf6..52a0415 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. | diff --git a/metadata.yaml b/metadata.yaml index 811900b..ef1bb9e 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 e9600ce..a702208 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." +}