Skip to content

Commit 4691686

Browse files
committed
CCM-9037: update missed refs
1 parent a482bc2 commit 4691686

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

infrastructure/terraform/modules/backend-api/dynamodb_table_templates.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resource "aws_dynamodb_table" "templates" {
2626

2727
server_side_encryption {
2828
enabled = true
29-
kms_key_arn = var.dynamodb_kms_key_arn == "" ? aws_kms_key.dynamo[0].arn : var.dynamodb_kms_key_arn
29+
kms_key_arn = local.dynamodb_kms_key_arn
3030
}
3131

3232
tags = {

infrastructure/terraform/modules/backend-api/locals.tf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ locals {
1414
})
1515

1616
backend_lambda_entrypoints = {
17-
create_template = "src/templates/api/create.ts"
18-
get_template = "src/templates/api/get.ts"
19-
update_template = "src/templates/api/update.ts"
20-
list_template = "src/templates/api/list.ts"
21-
template_client = "src/index.ts"
17+
create_template = "src/templates/api/create.ts"
18+
get_template = "src/templates/api/get.ts"
19+
update_template = "src/templates/api/update.ts"
20+
list_template = "src/templates/api/list.ts"
21+
template_client = "src/index.ts"
2222
}
23+
24+
dynamodb_kms_key_arn = var.dynamodb_kms_key_arn == "" ? aws_kms_key.dynamo[0].arn : var.dynamodb_kms_key_arn
2325
}

infrastructure/terraform/modules/backend-api/module_create_template_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ data "aws_iam_policy_document" "create_template_lambda_policy" {
4646
]
4747

4848
resources = [
49-
aws_kms_key.dynamo.arn
49+
local.dynamodb_kms_key_arn
5050
]
5151
}
5252
}

infrastructure/terraform/modules/backend-api/module_get_template_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data "aws_iam_policy_document" "get_template_lambda_policy" {
4747
]
4848

4949
resources = [
50-
aws_kms_key.dynamo.arn
50+
local.dynamodb_kms_key_arn
5151
]
5252
}
5353
}

infrastructure/terraform/modules/backend-api/module_list_template_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data "aws_iam_policy_document" "list_template_lambda_policy" {
4747
]
4848

4949
resources = [
50-
aws_kms_key.dynamo.arn
50+
local.dynamodb_kms_key_arn
5151
]
5252
}
5353
}

infrastructure/terraform/modules/backend-api/module_update_template_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ data "aws_iam_policy_document" "update_template_lambda_policy" {
4646
]
4747

4848
resources = [
49-
aws_kms_key.dynamo.arn
49+
local.dynamodb_kms_key_arn
5050
]
5151
}
5252
}

0 commit comments

Comments
 (0)