Skip to content

Commit da86c42

Browse files
author
arnol377
committed
Refactor Terraform configuration to fix syntax error in build_projects local value
``
1 parent 486f21d commit da86c42

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

modules/codebuild/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ locals {
3333
# value is a map with keys vars, environment_variables, and buildspec.
3434
# This map is assigned to the build_projects local value.
3535
_build_projects = var.docker_build ? concat([
36-
for project in var.build_projects : project if !contains(["test", "build"], project.name)
36+
for project in var.build_projects : project if ! contains(["test", "build"], project.name)
3737
],
3838
[
3939
{

modules/iam-role/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ data "aws_s3_bucket" "assets" {
1313
}
1414

1515
data "aws_iam_policy_document" "codepipeline_assume_role" {
16+
# iam:GetInstanceProfile
17+
statement {
18+
effect = "Allow"
19+
actions = [
20+
"iam:GetInstanceProfile"
21+
]
22+
}
1623
statement {
1724
effect = "Allow"
1825
actions = [

parameters_and_secrets.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ locals {
7575
nonsensitive_parameters = tomap(
7676
{ for k, v in local.ssm_parameters :
7777
(issensitive(k) ? nonsensitive(k) : k) => (issensitive(v) ? nonsensitive(v) : v)
78-
if !contains(var.nonmanaged_parameters, issensitive(k) ? nonsensitive(k) : k)
78+
if ! contains(var.nonmanaged_parameters, issensitive(k) ? nonsensitive(k) : k)
7979
}
8080
)
8181
}

0 commit comments

Comments
 (0)