-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: added terragrunt.hcl for stag setup
- Loading branch information
1 parent
8fa7cd8
commit fe956c4
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ htmlcov/ | |
.terraform | ||
*.tfstate | ||
*.tfstate.backup | ||
.terraform.lock.hcl | ||
|
||
# Terragrunt | ||
.terragrunt-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Set common variables for the environment. This is automatically pulled in in the root terragrunt.hcl configuration to | ||
# feed forward to the child modules. | ||
|
||
locals { | ||
environment = "stag" | ||
account_name = "hotosm" | ||
aws_region = "ap-south-1" | ||
application = "tasking-manager" | ||
team = "HOTOSM" | ||
creator = "HOTOSM" | ||
owner = "HOTOSM" | ||
} |
34 changes: 34 additions & 0 deletions
34
scripts/aws/lambda/TM-Extractor/stag/tm-extractor/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
# TERRAGRUNT CONFIGURATION | ||
# This is the configuration for Terragrunt, a thin wrapper for Terraform that helps keep your code DRY and | ||
# maintainable: https://github.com/gruntwork-io/terragrunt | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
|
||
# --------------------------------------------------------------------------------------------------------------------- | ||
# Include configurations that are common used across multiple environments. | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
|
||
# Include the root `terragrunt.hcl` configuration. The root configuration contains settings that are common across all | ||
# components and environments, such as how to configure remote state. | ||
include "root" { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
# Include the envcommon configuration for the component. The envcommon configuration contains settings that are common | ||
# for the component across all environments. | ||
include "envcommon" { | ||
path = "${dirname(find_in_parent_folders())}/_envcommon/lambda.hcl" | ||
} | ||
|
||
# --------------------------------------------------------------------------------------------------------------------- | ||
# Override parameters for this environment | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
|
||
# For production, we want to specify bigger instance classes and storage, so we specify override parameters here. These | ||
# inputs get merged with the common inputs from the root and the envcommon lambda.hcl | ||
inputs = { | ||
zip_output_dir = "files" | ||
active_projects_api_base_url = "https://tasking-manager-staging-api.hotosm.org/api/v2" | ||
raw_data_api = "https://api-prod.raw-data.hotosm.org/v1" | ||
config_json = "config.json" | ||
} |