Skip to content

Commit ed24bef

Browse files
committed
infra: moved raw_data_api & config_json to common inputs
1 parent 7a9378b commit ed24bef

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

scripts/aws/lambda/TM-Extractor/_envcommon/lambda.hcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# needs to deploy a different module version, it should redefine this block with a different ref to override the
1111
# deployed version.
1212
terraform {
13-
# Sourcing from here rn, updating to a release from https://github.com/hotosm/TM-Extractor/ later.
13+
# Sourcing from https://github.com/hotosm/TM-Extractor/
1414
source = "${local.base_source_url}?ref=v1.0.0"
1515
}
1616

@@ -43,4 +43,6 @@ inputs = {
4343
lambda_memory_size = "128"
4444
lambda_timeout = "14"
4545
lambda_cron_expression = "cron(0 0 * * ? *)"
46+
raw_data_api = "https://api-prod.raw-data.hotosm.org/v1"
47+
config_json = "config.json"
4648
}

scripts/aws/lambda/TM-Extractor/dev/tm-extractor/terragrunt.hcl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@ include "envcommon" {
2929
inputs = {
3030
zip_output_dir = "files"
3131
active_projects_api_base_url = "https://tm.naxa.com.np/api/v2"
32-
raw_data_api = "https://api-prod.raw-data.hotosm.org/v1"
33-
config_json = "config.json"
3432
}

scripts/aws/lambda/TM-Extractor/prod/tm-extractor/terragrunt.hcl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,5 @@ include "envcommon" {
2727
# For production, we want to specify bigger instance classes and storage, so we specify override parameters here. These
2828
# inputs get merged with the common inputs from the root and the envcommon lambda.hcl
2929
inputs = {
30-
zip_output_dir = "files"
3130
active_projects_api_base_url = "https://tasking-manager-tm4-production-api.hotosm.org/api/v2"
32-
raw_data_api = "https://api-prod.raw-data.hotosm.org/v1"
33-
config_json = "config.json"
3431
}

scripts/aws/lambda/TM-Extractor/stag/tm-extractor/terragrunt.hcl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@ include "envcommon" {
2929
inputs = {
3030
zip_output_dir = "files"
3131
active_projects_api_base_url = "https://tasking-manager-staging-api.hotosm.org/api/v2"
32-
raw_data_api = "https://api-prod.raw-data.hotosm.org/v1"
33-
config_json = "config.json"
3432
}

0 commit comments

Comments
 (0)