Skip to content

Files

Latest commit

619385a · Jul 28, 2023

History

History
38 lines (29 loc) · 657 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 657 Bytes

terraform-null-input-output

Pass in anything, get it back. Useful for testing Terragrunt builtin functions.

# terragrunt.hcl
terraform {
  source = "git::git@github.com:iangrunt/terraform-null-input-output.git"
}

locals {
  project = read_terragrunt_config(find_in_parent_folders("project.hcl"))
}

inputs = {
  i = {
    project_id  = local.project.locals.project_id
    namespace   = "iangrunt"
    environment = "prod"
  }
}

$ terragrunt plan

Changes to Outputs:
  + output = {
      + environment = "prod"
      + namespace   = "iangrunt"
      + project_id  = "project-delta"
    }