Skip to content

terraform.TgApplyAll(t, terraformOptions) is failing to perform --terragrunt-include-external-dependencies operation · Issue #1417 · gruntwork-io/terragrunt #1418

@pandu-bhojaraj-mf

Description

@pandu-bhojaraj-mf

@bruno @yorinasub17 @yupvr

If i run terragrunt apply-all --terragrunt-non-interactive command manually from command line then I am getting below error

image

If i run below command manually from command line then I am getting positive response without any error

terragrunt apply-all --terragrunt-non-interactive --terragrunt-include-external-dependencies

But if i invoke same module from terratest using terraform.TgApplyAll(t, terraformOptions) function then i am getting below error same error as of #1

image

So In terratest please let me know how can i run terragrunt apply-all --terragrunt-non-interactive --terragrunt-include-external-dependencies because terraform.TgApplyAll(t, terraformOptions) is not solving the problem
Are there any way/option/modifications do i need to do in terraform.TgApplyAll(t, terraformOptions) function to pass --terragrunt-include-external-dependencies ??

Please help

Below solution dint work

1

options := &Options{
TerraformDir: "../with-infra/vertica-console",
TerraformBinary: "terragrunt",
EnvVars: map[string]string{
"TF_CLI_ARGS": "--terragrunt-include-external-dependencies",
},
}

2

RunTerraformCommandE(t, options, FormatArgs(options, "apply-all", "-input=false", "-lock=false", "-auto-approve", "--terragrunt-non-interactive", "--terragrunt-include-external-dependencies")...)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions