Skip to content

Commit

Permalink
Merge pull request #39 from trussworks/fix-deleteobj-bool
Browse files Browse the repository at this point in the history
fixing a mix of strings and bools
chtakahashi authored Nov 21, 2022
2 parents 20b0df8 + 00c3fe8 commit 032de2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anti-virus-scan.tf
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ data "aws_iam_policy_document" "main_scan" {
"s3:GetObjectVersion",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging"
],var.av_delete_infected_files ? ["s3:DeleteObject"] : [])
], var.av_delete_infected_files == "True" ? ["s3:DeleteObject"] : [])

resources = formatlist("%s/*", data.aws_s3_bucket.main_scan.*.arn)
}

0 comments on commit 032de2a

Please sign in to comment.