Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhz committed Sep 13, 2023
1 parent b81c927 commit 977de8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions terraform/root_locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ locals {
"Role" = "prvt"
}
)
dynamodb_hash_key = "v1"
reference_generator_function_name = "${var.project}-reference-generator-${local.hosting_environment}"
reference_counter_table_name = "${var.project}-reference-counter"
dynamodb_hash_key = "v1"
reference_generator_function_name = "${var.project}-reference-generator-${local.hosting_environment}"
reference_generator_api_gateway_name = "${upper(var.project)}ReferenceGenerator${local.hosting_environment}"
reference_counter_table_name = "${var.project}-reference-counter"
}
4 changes: 2 additions & 2 deletions terraform/root_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ module "reference_generator_api_gateway" {
source = "./da-terraform-modules/apigateway"
api_definition = templatefile("./templates/api_gateway/reference_generator.json.tpl", {
environment = local.hosting_environment
title = "${upper(var.project)}ReferenceGenerator"
title = local.reference_generator_api_gateway_name
lambda_arn = module.reference_generator_lambda.lambda_arn,
})
api_name = "${upper(var.project)}ReferenceGenerator"
api_name = local.reference_generator_api_gateway_name
environment = local.hosting_environment
common_tags = local.hosting_common_tags
}

0 comments on commit 977de8e

Please sign in to comment.