Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can parent terraform.tfvars contain environment variables? #137

Closed
dhoer opened this issue Feb 19, 2017 · 1 comment
Closed

Can parent terraform.tfvars contain environment variables? #137

dhoer opened this issue Feb 19, 2017 · 1 comment

Comments

@dhoer
Copy link

dhoer commented Feb 19, 2017

I can't seem to get the following to work:

terragrunt = {
  # Configure Terragrunt to use DynamoDB for locking
  lock {
    backend = "dynamodb"
    config {
      state_file_id = "${path_relative_to_include()}"
    }
  }

  # Configure Terragrunt to automatically store tfstate files in an S3 bucket
  remote_state {
    backend = "s3"
    config {
      encrypt = "true"
      bucket = "mybucket"
      key = "${path_relative_to_include()}/terraform.tfstate"
      region = "us-east-1"
    }
  }
}

region = "us-east-1"
terragrunt = {
  include {
    path = "${find_in_parent_folders()}"
  }

  terraform {
    source = "../..//modules/app"
  }
}

name = "test"

The name variable is available, but the region is not. Any help on this would be appreciated.

@brikis98
Copy link
Member

Duplicate of #132. Let's consolidate the discussion in that thread. For the specific answer to your question, see #132 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants