Skip to content

Commit 0b06849

Browse files
committed
created locals.tf file
1 parent ee9edd6 commit 0b06849

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

locals.tf

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
locals {
2+
safe_codepipeline_pipelines = {
3+
for k, v in var.codepipeline_pipelines : k => merge(
4+
v,
5+
{
6+
stages = [for stage in v.stages : merge(
7+
stage,
8+
{
9+
action = [for action in stage.action : merge(
10+
action,
11+
action.provider == "GitHub" ? {
12+
configuration = merge(action.configuration, { OAuthToken = null })
13+
} : {}
14+
)]
15+
}
16+
)]
17+
}
18+
)
19+
}
20+
}

0 commit comments

Comments
 (0)