terragrunt: Nested terragrunt file not working on Windows
I am trying to use the nested terragrunt file on Windows. The directory structure is:
.terragrunt
env
dev
web
.terragrunt
The root terragrunt file content.
lock = {
backend = "dynamodb"
config {
state_file_id = "${path_relative_to_include()}"
aws_region = "eu-west-1"
table_name = "terragrunt_locks"
}
}
remote_state = {
backend = "s3"
config {
encrypt = "true"
bucket = "tfstate"
key = "${path_relative_to_include()}/terraform.tfstate"
region = "eu-west-1"
}
}
The content of terragrunt file in dev/web.
include = {
path = "${find_in_parent_folders()}"
}
Running terragrunt plan in dev/web, I got the following error:
[terragrunt] 2016/12/27 15:56:03 Reading Terragrunt config file at C:\Users\userA\dev\test-aws\envs\dev\web\.terragrunt
[terragrunt] 2016/12/27 15:56:03 Error parsing Terragrunt config file C:\Users\userA\dev\test-aws\envs\dev\web\.terragrunt: At 2:20: illegal char escape
When I replace ${find_in_parent_folders()} with hardcoded path: ../../../.terragrunt, I got error further along.
[terragrunt] 2016/12/27 15:52:07 Reading Terragrunt config file at C:\Users\userA\dev\test-aws\envs\dev\web\.terragrunt
[terragrunt] 2016/12/27 15:52:07 Error parsing Terragrunt config file C:\Users\userA\dev\test-aws\envs\dev\web\.terragrunt: Error parsing Terragrunt config file C:\Users
\userA\dev\test-aws\.terragrunt: At 15:17: illegal char escape
Could this be another Windows issue?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (11 by maintainers)
Ok, let me modify it there and send a PR.