Skip to content

Commit 12434d8

Browse files
VIA-373 AJ Add missing environment variables for env:test
1 parent 1d81dd0 commit 12434d8

File tree

1 file changed

+13
-9
lines changed
  • infrastructure/environments/test

1 file changed

+13
-9
lines changed

infrastructure/environments/test/main.tf

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ module "deploy_iam" {
1212
module "deploy_lambda" {
1313
source = "../../modules/deploy_lambda"
1414

15-
prefix = local.prefix
16-
nodejs_version = local.node_version
17-
cache_lambda_zip_path = local.cache_lambda_zip_path
18-
application_environment_variables = local.application_environment_variables
19-
log_retention_in_days = local.log_retention_in_days
20-
default_tags = local.default_tags
21-
alerting_sns_topic_arn = module.deploy_monitoring.alerting_sns_topic_arn
22-
account_id = data.aws_caller_identity.current.account_id
23-
region = local.region
15+
prefix = local.prefix
16+
nodejs_version = local.node_version
17+
cache_lambda_zip_path = local.cache_lambda_zip_path
18+
application_environment_variables = merge(local.application_environment_variables,
19+
{
20+
ELIGIBILITY_API_ENDPOINT = "${module.deploy_fake_api.application_url}/",
21+
APIM_AUTH_URL = "${module.deploy_fake_api.application_url}/oauth2/token"
22+
})
23+
log_retention_in_days = local.log_retention_in_days
24+
default_tags = local.default_tags
25+
alerting_sns_topic_arn = module.deploy_monitoring.alerting_sns_topic_arn
26+
account_id = data.aws_caller_identity.current.account_id
27+
region = local.region
2428
}
2529

2630
module "deploy_fake_api" {

0 commit comments

Comments
 (0)