-
-
Notifications
You must be signed in to change notification settings - Fork 998
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
Support for remote_state backend 'remote' #779
Comments
Ah, Terragrunt is not converted nested values (e.g., nested maps, such as |
Facing the same issue, wish i could help but my go fu is not strong. |
👍 me three |
I'm trying to write a patch for this, do you have any pointers @brikis98 as to in what file this is done? I'm a novice Go developer at best which isn't really to my advantage :) |
Even if parsing is fixed, hashicorp/terraform#21830 still needs to be resolved for this to work with tf 0.12. |
This would be awesome currently need this. |
How does Terragrunt actually run the shell commands? Bash can do process substitution in order to bypass the need to create a temporary file, this works correctly when using
However, it seems like terraform is being run in such a way that doesn't allow this as the following does not seem to work. In what shell are terraform commands run in?
Terragrunt says that it is running the command
This is not the most elegant way to do this, but it seems like one of the few possible workarounds that could be used until this and hashicorp/terraform#21830 get fixed, other than adding a |
Actually, a better workaround is having a before_hook which runs a python script that writes the relative path to a file called backend.hcl
|
We just released a new feature, Since this is generating the raw TF file instead of using the CLI args, it won't run into all the parsing issues where you couldn't set blocks or complex maps on the CLI with With this, you can generate a generate "backend" {
path = "backend.tf"
if_exists = "overwrite_terragrunt"
contents = <<EOF
terraform {
backend "remote" {
hostname = "app.terraform.io"
organization = "my-company"
workspaces {
name = "da-dev-${path_relative_to_include()}"
}
}
}
EOF
} |
This issue still exists. |
The
Edit: Figured it out, running terragrunt plan from the parent rather than child directory! Workspace generates with the right name now. |
Generate block works fine, but this incompatibility should be pointed out in the documentation. |
Since HashiCorp has offered a free tier for Terraform Enteprise it would be nice to have a support for
Or I've missed something and it's already there?
I have the following config:
but it gives an error:
The text was updated successfully, but these errors were encountered: