Skip to content

Commit

Permalink
infra: added terragrunt.hcl for stag setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-naxa committed Jan 8, 2024
1 parent 8fa7cd8 commit fe956c4
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ htmlcov/
.terraform
*.tfstate
*.tfstate.backup
.terraform.lock.hcl

# Terragrunt
.terragrunt-cache
12 changes: 12 additions & 0 deletions scripts/aws/lambda/TM-Extractor/stag/env.hcl
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 scripts/aws/lambda/TM-Extractor/stag/tm-extractor/terragrunt.hcl
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"
}

0 comments on commit fe956c4

Please sign in to comment.