Skip to content

Commit cc2b599

Browse files
authored
[PRMP-1465] Post User Restriction (#638)
1 parent a8d8ab2 commit cc2b599

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

infrastructure/lambda-create-user-restriction.tf

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ module "create_user_restriction_lambda" {
55
iam_role_policy_documents = [
66
module.ndr-app-config.app_config_policy,
77
aws_iam_policy.ssm_access_policy.policy,
8-
module.user_restriction_table.dynamodb_write_policy_document
8+
module.user_restriction_table.dynamodb_write_policy_document,
9+
module.user_restriction_table.dynamodb_read_policy_document
910
]
1011
kms_deletion_window = var.kms_deletion_window
1112
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
1213
resource_id = module.user_restrictions_gateway.gateway_resource_id
1314
http_methods = ["POST"]
1415
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
1516
lambda_environment_variables = {
16-
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
17-
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
18-
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
19-
WORKSPACE = terraform.workspace
20-
RESTRICTIONS_TABLE_NAME = module.user_restriction_table.table_name
17+
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
18+
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
19+
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
20+
WORKSPACE = terraform.workspace
21+
RESTRICTIONS_TABLE_NAME = module.user_restriction_table.table_name
22+
HEALTHCARE_WORKER_API_URL = local.is_sandbox ? "" : data.aws_ssm_parameter.healthcare_worker_api_base_url.value
2123
}
2224

2325
depends_on = [
@@ -63,4 +65,4 @@ module "create_user_restriction_lambda_alarm_topic" {
6365
}
6466
]
6567
})
66-
}
68+
}

0 commit comments

Comments
 (0)