We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d11a3ad + 5ad5428 commit 84b3cd1Copy full SHA for 84b3cd1
data.tf
@@ -69,6 +69,8 @@ data "aws_iam_policy_document" "update_lambda_edge" {
69
70
data "aws_iam_policy_document" "sign_code" {
71
#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
+
74
statement {
75
sid = "UploadToS3"
76
github_action.tf
@@ -53,5 +53,5 @@ resource "aws_iam_role_policy" "sign_code" {
53
54
name_prefix = "SignCode"
55
role = module.lambda_gha[0].role.name
56
- policy = data.aws_iam_policy_document.sign_code.json
+ policy = data.aws_iam_policy_document.sign_code[0].json
57
}
0 commit comments