Skip to content

Commit d8b24cc

Browse files
committed
Workflow templating fix (GoogleCloudPlatform#2864)
Fixed some issue with WIF and providers templating in workflows.
1 parent c62f11f commit d8b24cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fast/stages/1-resman/outputs-cicd.tf

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ locals {
2424
# If users give a list of custom audiences we set by default the first element.
2525
# If no audiences are given, we set https://iam.googleapis.com/{PROVIDER_NAME}
2626
audiences = try(
27-
local.cicd_workflow_providers[v.identity_provider].audiences, []
27+
local.identity_providers[v.identity_provider].audiences, []
2828
)
2929
identity_provider = try(
30-
local.cicd_workflow_providers[v.identity_provider].name, ""
30+
local.identity_providers[v.identity_provider].name, ""
3131
)
3232
outputs_bucket = var.automation.outputs_bucket
3333
service_accounts = {
@@ -36,8 +36,8 @@ locals {
3636
}
3737
stage_name = k
3838
tf_providers_files = {
39-
apply = local.cicd_workflow_providers[k]
40-
plan = local.cicd_workflow_providers["${k}-r"]
39+
apply = replace(local.cicd_workflow_providers[k], "_", "-")
40+
plan = replace(local.cicd_workflow_providers["${k}-r"], "_", "-")
4141
}
4242
tf_var_files = (
4343
v.level == 2 ?

0 commit comments

Comments
 (0)