Skip to content

Commit

Permalink
infra: added lambda conf and env.hcl for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-naxa committed Jan 8, 2024
1 parent fe956c4 commit fd1fcea
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/aws/lambda/TM-Extractor/prod/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 = "prod"
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/prod/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-tm4-production-api.hotosm.org/api/v2"
raw_data_api = "https://api-prod.raw-data.hotosm.org/v1"
config_json = "config.json"
}

0 comments on commit fd1fcea

Please sign in to comment.