Skip to content

Commit bdcdaee

Browse files
kms policies attachment to lambda (#204)
* kms policies attachment to lambda * manual-terraform-apply
1 parent 45a3a66 commit bdcdaee

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/manual-terraform-plan.yaml renamed to .github/workflows/manual-terraform-apply.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Manual Terraform Plan
1+
name: Manual Terraform Apply
22

33
on:
44
workflow_dispatch:
@@ -65,8 +65,8 @@ jobs:
6565
run: |
6666
mkdir -p ./build
6767
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=plan args=\"-auto-approve\""
68-
make terraform env=$ENVIRONMENT stack=networking tf-command=plan workspace=$WORKSPACE
68+
make terraform env=$ENVIRONMENT stack=networking tf-command=apply workspace=$WORKSPACE
6969
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=plan args=\"-auto-approve\""
70-
make terraform env=$ENVIRONMENT stack=api-layer tf-command=plan workspace=$WORKSPACE
70+
make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
7171
7272
working-directory: ./infrastructure

infrastructure/stacks/api-layer/iam_policies.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,13 @@ data "aws_iam_policy_document" "dynamodb_kms_key_policy" {
150150
type = "AWS"
151151
identifiers = [aws_iam_role.eligibility_lambda_role.arn]
152152
}
153-
actions = ["kms:Decrypt"]
153+
actions = [
154+
"kms:Encrypt",
155+
"kms:Decrypt",
156+
"kms:ReEncrypt*",
157+
"kms:GenerateDataKey*",
158+
"kms:DescribeKey"
159+
]
154160
resources = ["*"]
155161
}
156162
}

0 commit comments

Comments
 (0)