Is there a way to copy directories into the Terragrunt workspace?
I've come across the include_in_copy
attritube, and I've tried something like this
terraform {
source = "git@gitlab.foo"
include_in_copy = [
"${get_parent_terragrunt_dir()}/foo-dir/"
]
}
But, it looks like this only copies content from whatever the source location is
However, in my case, I want to copy in an entire directory that's in the absolute path to the first terragrunt.hcl file, hence the use of the get_parent_terragrunt_dir()
function.
This is what my file structure looks like.
├── deploy
│ └── bar
│ └── terragrunt.hcl
├── foo-dir
└── terragrunt.hcl
I'm calling terragrunt from inside the deploy/bar
directory and I would like to include the foo-dir
directory as well, but it looks like I'm doing something wrong.
Is there a function that might be able to do this?