Skip to content

Commit 91a33e4

Browse files
fix(routing-key): enable routing key generation in a deterministic way
1 parent 968d63e commit 91a33e4

File tree

1 file changed

+4
-4
lines changed
  • modules/integrations/pub-sub

1 file changed

+4
-4
lines changed

modules/integrations/pub-sub/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ data "sysdig_current_user" "user" {}
2929
# These locals indicate the suffix to create unique name for resources
3030
#-----------------------------------------------------------------------------------------
3131
locals {
32-
suffix = var.suffix == null ? random_id.suffix[0].hex : var.suffix
33-
role_name = "SysdigIngestionAuthRole"
34-
key_name = "${var.project_id}-${data.sysdig_current_user.user.id}"
35-
routing_key = uuidv5("oid", local.key_name)
32+
suffix = var.suffix == null ? random_id.suffix[0].hex : var.suffix
33+
role_name = "SysdigIngestionAuthRole"
34+
key_name = "${var.project_id}-${data.sysdig_current_user.user.id}"
35+
routing_key = uuidv5("oid", local.key_name)
3636
ingestion_url = "${regex("^(.*)/[^/]+$", data.sysdig_secure_cloud_ingestion_assets.assets.gcp_metadata.ingestionURL)[0]}/${local.routing_key}"
3737
}
3838

0 commit comments

Comments
 (0)