Skip to content

Commit ecde31a

Browse files
committed
Comments sorted
1 parent c6d099f commit ecde31a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

terraform/endpoints.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ locals {
2424
imms_lambda_env_vars = {
2525
"DYNAMODB_TABLE_NAME" = local.imms_table_name,
2626
"IMMUNIZATION_ENV" = var.sub_environment,
27-
"IMMUNIZATION_BASE_PATH" = strcontains(terraform.workspace, "pr-") ? "immunisation-fhir-api-${terraform.workspace}" : "immunisation-fhir-api"
27+
"IMMUNIZATION_BASE_PATH" = strcontains(var.sub_environment, "pr-") ? "immunisation-fhir-api-${var.sub_environment}" : "immunisation-fhir-api"
2828
# except for prod and ref, any other env uses PDS int environment
2929
"PDS_ENV" = var.pds_environment
3030
"PDS_CHECK_ENABLED" = tostring(var.pds_check_enabled)

terraform/environments/prod/blue/variables.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
environment = "prod"
22
immunisation_account_id = "664418956997"
3-
dspp_core_account_id = "603871901111"
3+
dspp_core_account_id = "232116723729"
44
pds_environment = "prod"
55
pds_check_enabled = true
66
create_mesh_processor = true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
environment = "prod"
22
immunisation_account_id = "664418956997"
3-
dspp_core_account_id = "603871901111"
3+
dspp_core_account_id = "232116723729"
44
pds_environment = "prod"
55
pds_check_enabled = true
66
create_mesh_processor = true

terraform/lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ resource "aws_ecr_repository" "operation_lambda_repository" {
1515
scan_on_push = true
1616
}
1717
name = "${local.prefix}-operation-lambda-repo"
18-
force_delete = true #local.is_temp
18+
force_delete = local.is_temp
1919
}
2020

2121
#resource "docker_image" "lambda_function_docker" {

terraform/mesh_processor.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ locals {
44
mesh_processor_lambda_files = fileset(local.mesh_processor_lambda_dir, "**")
55
mesh_processor_lambda_dir_sha = sha1(join("", [for f in local.mesh_processor_lambda_files : filesha1("${local.mesh_processor_lambda_dir}/${f}")]))
66
# This should match the prefix used in the infra Terraform
7-
mesh_s3_bucket_name = "imms-${var.environment}-mesh"
7+
mesh_module_prefix = "imms-${var.environment}-mesh"
88
}
99

1010
data "aws_s3_bucket" "mesh" {
1111
count = var.create_mesh_processor ? 1 : 0
1212

13-
bucket = local.mesh_s3_bucket_name
13+
bucket = local.mesh_module_prefix
1414
}
1515

1616
data "aws_kms_key" "mesh" {
1717
count = var.create_mesh_processor ? 1 : 0
1818

19-
key_id = "alias/${local.mesh_s3_bucket_name}"
19+
key_id = "alias/${local.mesh_module_prefix}"
2020
}
2121

2222
resource "aws_ecr_repository" "mesh_file_converter_lambda_repository" {

0 commit comments

Comments
 (0)