Skip to content

Commit

Permalink
Fix apphub uri and id representation
Browse files Browse the repository at this point in the history
  • Loading branch information
tjy9206 committed Oct 21, 2024
1 parent f9ba489 commit bc53c6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
11 changes: 4 additions & 7 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,10 @@ spec:
- 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
- tuple
- - - object
- service_id: string
service_uri: string
- name: bucket
description: Bucket resource (for single use).
type:
Expand Down
8 changes: 4 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ output "hmac_keys" {
}

output "apphub_service_uri" {
value = {
service_uri = local.buckets_list[*].self_link
service_id = local.buckets_list[*].name
}
value = [for bucket in local.buckets_list : {
service_uri = "//storage.googleapis.com/Bucket/${element(split("/b/", bucket.self_link), 1)}"
service_id = substr(format("%s-%s", bucket.name, md5(var.project_id)), 0, 63)
}]
description = "Service URI in CAIS style to be used by Apphub."
}

0 comments on commit bc53c6d

Please sign in to comment.