Skip to content

Commit 78cb5e3

Browse files
authored
Merge branch 'main' into feature/eja-add-slack-webhook
2 parents d45fb50 + c803d54 commit 78cb5e3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/cicd-2-publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ jobs:
100100
# just planning for now for safety and until review
101101
run: |
102102
mkdir -p ./build
103-
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=plan"
104-
make terraform env=$ENVIRONMENT stack=networking tf-command=plan workspace=$WORKSPACE
105-
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=plan"
106-
make terraform env=$ENVIRONMENT stack=api-layer tf-command=plan workspace=$WORKSPACE
103+
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=apply"
104+
make terraform env=$ENVIRONMENT stack=networking tf-command=apply workspace=$WORKSPACE
105+
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=apply"
106+
make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
107107
working-directory: ./infrastructure
108108

109109
- name: "Tag the dev deployment"

infrastructure/stacks/api-layer/iam_policies.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ data "aws_iam_policy_document" "dynamodb_write_policy_doc" {
2323

2424
# Attach dynamoDB write policy to external write role
2525
resource "aws_iam_role_policy" "external_dynamodb_write_policy" {
26+
count = length(aws_iam_role.write_access_role)
2627
name = "DynamoDBWriteAccess"
27-
role = aws_iam_role.write_access_role.id
28+
role = aws_iam_role.write_access_role[count.index].id
2829
policy = data.aws_iam_policy_document.dynamodb_write_policy_doc.json
2930
}
3031

@@ -160,5 +161,3 @@ resource "aws_kms_key_policy" "kms_key" {
160161
key_id = module.eligibility_status_table.dynamodb_kms_key_id
161162
policy = data.aws_iam_policy_document.kms_key_policy.json
162163
}
163-
164-

0 commit comments

Comments
 (0)