Skip to content

Commit

Permalink
feat: Add Apphub URI output to cloud storage (#358)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Peabody <[email protected]>
  • Loading branch information
tjy9206 and apeabody authored Oct 17, 2024
1 parent 9c658ce commit 209d5e3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
10 changes: 10 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

0 comments on commit 209d5e3

Please sign in to comment.