Skip to content

Commit 84b3cd1

Browse files
authored
Merge pull request #20 from SPHTech-Platform/fix/error-invalid-interpolation-value
Fix #19 interpolation error
2 parents d11a3ad + 5ad5428 commit 84b3cd1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

data.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ data "aws_iam_policy_document" "update_lambda_edge" {
6969

7070
data "aws_iam_policy_document" "sign_code" {
7171
#checkov:skip=CKV_AWS_356:Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
72+
count = var.create_github_actions_signed_code_role ? 1 : 0
73+
7274
statement {
7375
sid = "UploadToS3"
7476

github_action.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ resource "aws_iam_role_policy" "sign_code" {
5353

5454
name_prefix = "SignCode"
5555
role = module.lambda_gha[0].role.name
56-
policy = data.aws_iam_policy_document.sign_code.json
56+
policy = data.aws_iam_policy_document.sign_code[0].json
5757
}

0 commit comments

Comments
 (0)