Skip to content

Commit

Permalink
improve apphub uri extraction logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tjy9206 committed Oct 21, 2024
1 parent f9ba489 commit 0e570a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ output "hmac_keys" {

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

0 comments on commit 0e570a8

Please sign in to comment.