File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
infrastructure/stacks/api-layer Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
2525resource "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-
You can’t perform that action at this time.
0 commit comments