Skip to content

Commit

Permalink
[DEVOPS-1135] update Terragrunt package up to 0.54.1 and fix the API …
Browse files Browse the repository at this point in the history
…references (#1) (#297)

https://physitrack.atlassian.net/browse/DEVOPS-1135

## Description

As we were discussing in the Slack channel - the outdated Terragrunt
package in the terragrunt-atlantis-config binary is preventing us from
using the `disable` attribute in the `generate` blocks introduced to
Terragrunt in v0.45.16. It's a deal-breaker for us as we're using this
feature to prevent AWS Provider generation (which is generated by
default).

This PR updates the Terragrunt packages and patches the changes in the
API. Given a chance I've also tried to run this against Go 1.21, seems
like there's no issue with that.

I'm not setting up the CI for this project, so here are tests run from
my localhost:

```
mkdir -p cmd/test_artifacts
go test -v ./...
?   	github.com/transcend-io/terragrunt-atlantis-config	[no test files]
=== RUN   TestSettingRoot
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestSettingRoot (0.00s)
=== RUN   TestRootPathBeingAbsolute
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestRootPathBeingAbsolute (0.00s)
=== RUN   TestRootPathHavingTrailingSlash
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestRootPathHavingTrailingSlash (0.00s)
=== RUN   TestWithNoTerragruntFiles
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
--- PASS: TestWithNoTerragruntFiles (0.00s)
=== RUN   TestWithParallelizationDisabled
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestWithParallelizationDisabled (0.00s)
=== RUN   TestIgnoringParentTerragrunt
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/with_parent/child/terragrunt.hcl"
--- PASS: TestIgnoringParentTerragrunt (0.00s)
=== RUN   TestNotIgnoringParentTerragrunt
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/with_parent/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/with_parent/child/terragrunt.hcl"
--- PASS: TestNotIgnoringParentTerragrunt (0.00s)
=== RUN   TestEnablingAutoplan
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestEnablingAutoplan (0.00s)
=== RUN   TestSettingWorkflowName
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestSettingWorkflowName (0.00s)
=== RUN   TestExtraDeclaredDependencies
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_dependency/child/terragrunt.hcl"
--- PASS: TestExtraDeclaredDependencies (0.00s)
=== RUN   TestLocalTerraformModuleSource
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/local_terraform_module_source/terragrunt-module/terragrunt.hcl"
--- PASS: TestLocalTerraformModuleSource (0.00s)
=== RUN   TestLocalTerraformAbsModuleSource
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/local_terraform_abs_module_source/terragrunt-module/terragrunt.hcl"
--- PASS: TestLocalTerraformAbsModuleSource (0.00s)
=== RUN   TestLocalTfModuleSource
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/local_tf_module_source/terraform/terragrunt.hcl"
--- PASS: TestLocalTfModuleSource (0.00s)
=== RUN   TestTerragruntDependencies
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt_dependency/dependency/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt_dependency/depender/terragrunt.hcl"
--- PASS: TestTerragruntDependencies (0.00s)
=== RUN   TestIgnoringTerragruntDependencies
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt_dependency/dependency/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt_dependency/depender/terragrunt.hcl"
--- PASS: TestIgnoringTerragruntDependencies (0.00s)
=== RUN   TestCustomWorkflowName
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/different_workflow_names/defaultWorkflow/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/different_workflow_names/workflowB/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/different_workflow_names/workflowA/terragrunt.hcl"
--- PASS: TestCustomWorkflowName (0.00s)
=== RUN   TestUnparseableParent
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child/deep/terragrunt.hcl"
--- PASS: TestUnparseableParent (0.01s)
=== RUN   TestWithWorkspaces
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestWithWorkspaces (0.00s)
=== RUN   TestWithProjectNames
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child/deep/terragrunt.hcl"
--- PASS: TestWithProjectNames (0.01s)
=== RUN   TestMergingLocalDependenciesFromParent
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/parent_with_extra_deps/deep_with_local_tags_file/child/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/parent_with_extra_deps/deep/child/terragrunt.hcl"
--- PASS: TestMergingLocalDependenciesFromParent (0.00s)
=== RUN   TestWorkflowFromParentInLocals
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/parent_with_workflow_local/child/terragrunt.hcl"
--- PASS: TestWorkflowFromParentInLocals (0.00s)
=== RUN   TestChildWorkflowOverridesParentWorkflow
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/child_and_parent_specify_workflow/child/terragrunt.hcl"
--- PASS: TestChildWorkflowOverridesParentWorkflow (0.00s)
=== RUN   TestExtraArguments
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/only_required_files/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/var_file/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/no_files_at_all/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/only_optional_files/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/child/terragrunt.hcl"
--- PASS: TestExtraArguments (0.01s)
=== RUN   TestInfrastructureLive
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/mysql/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
--- PASS: TestInfrastructureLive (0.04s)
=== RUN   TestModulesWithNoTerraformSourceDefinitions
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global/iam/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global/dns/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage/network/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage/dbs/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra/network/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra/apps/terragrunt.hcl"
--- PASS: TestModulesWithNoTerraformSourceDefinitions (0.05s)
=== RUN   TestInfrastructureMutliAccountsVPCRoute53TGWCascading
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/network-account/eu-west-1/network/transit-gateway/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/_global/route53/test-zone/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/env-a/network/vpc/terragrunt.hcl"
--- PASS: TestInfrastructureMutliAccountsVPCRoute53TGWCascading (0.01s)
=== RUN   TestAutoPlan
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/autoplan/set_in_parent/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/autoplan/autoplan_false/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/autoplan/autoplan_true/terragrunt.hcl"
--- PASS: TestAutoPlan (0.00s)
=== RUN   TestSkippingModules
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/skip/skip_false/terragrunt.hcl"
--- PASS: TestSkippingModules (0.00s)
=== RUN   TestTerraformVersionConfig
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terraform_version/use_flag_default/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terraform_version/inherit_from_parent/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terraform_version/override_parent/terragrunt.hcl"
--- PASS: TestTerraformVersionConfig (0.00s)
=== RUN   TestPreservingOldWorkflows
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestPreservingOldWorkflows (0.00s)
=== RUN   TestPreservingOldProjects
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestPreservingOldProjects (0.00s)
=== RUN   TestEnablingAutomerge
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestEnablingAutomerge (0.00s)
=== RUN   TestChainedDependencies
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/dependency/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender_on_depender/nested/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender_on_depender/terragrunt.hcl"
--- PASS: TestChainedDependencies (0.00s)
=== RUN   TestChainedDependenciesHiddenBehindFlag
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/dependency/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender_on_depender/nested/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender_on_depender/terragrunt.hcl"
--- PASS: TestChainedDependenciesHiddenBehindFlag (0.00s)
=== RUN   TestApplyRequirementsLocals
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_does_not_specify/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_specifies_empty/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_specifies/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_does_not_override/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_overrides/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_overrides_to_empty/terragrunt.hcl"
--- PASS: TestApplyRequirementsLocals (0.00s)
=== RUN   TestApplyRequirementsFlag
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
--- PASS: TestApplyRequirementsFlag (0.00s)
=== RUN   TestFilterFlagWithInfraLiveProd
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/mysql/terragrunt.hcl"
--- PASS: TestFilterFlagWithInfraLiveProd (0.02s)
=== RUN   TestFilterFlagWithInfraLiveNonProd
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
--- PASS: TestFilterFlagWithInfraLiveNonProd (0.03s)
=== RUN   TestFilterGlobFlagWithInfraLiveMySql
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/mysql/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
--- PASS: TestFilterGlobFlagWithInfraLiveMySql (0.03s)
=== RUN   TestMultipleIncludes
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/uses_terraform_12/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/uses_terraform_13/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/includes_tf_12_then_13/terragrunt.hcl"
time="2023-12-12T15:35:01+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/includes_tf_13_then_12/terragrunt.hcl"
--- PASS: TestMultipleIncludes (0.01s)
=== RUN   TestRemoteModuleSourceBitbucket
time="2023-12-12T15:35:01+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_bitbucket/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceBitbucket (0.67s)
=== RUN   TestRemoteModuleSourceGCS
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_gcs/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceGCS (0.00s)
=== RUN   TestRemoteModuleSourceGitHTTPS
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_git_https/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceGitHTTPS (0.00s)
=== RUN   TestRemoteModuleSourceGitSCPLike
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_git_scp_like/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceGitSCPLike (0.00s)
=== RUN   TestRemoteModuleSourceGitSSH
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_git_ssh/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceGitSSH (0.00s)
=== RUN   TestRemoteModuleSourceGithubHTTPS
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_github_https/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceGithubHTTPS (0.01s)
=== RUN   TestRemoteModuleSourceGithubSSH
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_github_ssh/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceGithubSSH (0.00s)
=== RUN   TestRemoteModuleSourceHTTP
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_http/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceHTTP (0.00s)
=== RUN   TestRemoteModuleSourceHTTPS
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_https/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceHTTPS (0.00s)
=== RUN   TestRemoteModuleSourceMercurial
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_mercurial/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceMercurial (0.00s)
=== RUN   TestRemoteModuleSourceS3
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_s3/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceS3 (0.00s)
=== RUN   TestRemoteModuleSourceTerraformRegistry
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_terraform_registry/terragrunt.hcl"
--- PASS: TestRemoteModuleSourceTerraformRegistry (0.00s)
=== RUN   TestEnvHCLProjectsNoChilds
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/network-account/eu-west-1/network"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/_global"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/env-a"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod"
--- PASS: TestEnvHCLProjectsNoChilds (0.25s)
=== RUN   TestEnvHCLProjectsSubChilds
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child/deep/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/network-account/eu-west-1/network/transit-gateway/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/network-account/eu-west-1/network"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/_global/route53/test-zone/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/_global"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/env-a/network/vpc/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/env-a"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra/network/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra/apps/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage/network/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage/dbs/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global/iam/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global/dns/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/mysql/terragrunt.hcl"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod"
--- PASS: TestEnvHCLProjectsSubChilds (0.21s)
=== RUN   TestEnvHCLProjectsExternalChilds
time="2023-12-12T15:35:02+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:02+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/network-account/eu-west-1/network"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/_global"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/env-a"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_does_not_specify/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_specifies/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender_on_depender/nested/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/dependency/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/different_workflow_names/defaultWorkflow/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender_on_depender/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_does_not_override/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/different_workflow_names/workflowA/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/different_workflow_names/workflowB/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/autoplan/set_in_parent/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_specifies_empty/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_overrides/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/autoplan/autoplan_false/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/child_and_parent_specify_workflow/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_dependency/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/var_file/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/local_terraform_module_source/terragrunt-module/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/only_required_files/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_overrides_to_empty/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/local_tf_module_source/terraform/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/includes_tf_12_then_13/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/autoplan/autoplan_true/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_git_https/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/uses_terraform_12/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/only_optional_files/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_github_https/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_gcs/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/uses_terraform_13/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_https/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/hcl_json/json_expanded/terragrunt.hcl.json"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_http/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_mercurial/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/local_terraform_abs_module_source/terragrunt-module/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_git_ssh/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/parent_with_extra_deps/deep_with_local_tags_file/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/no_files_at_all/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_git_scp_like/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_github_ssh/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_s3/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/parent_with_workflow_local/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt_dependency/dependency/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terraform_version/use_flag_default/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multiple_includes/includes_tf_13_then_12/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_terraform_registry/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terraform_version/override_parent/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/skip/skip_false/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terraform_version/inherit_from_parent/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt_dependency/depender/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/extra_arguments/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/parent_with_extra_deps/deep/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/with_parent/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/with_original_dir/dependency/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/with_original_dir/child/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/remote_module_source_bitbucket/terragrunt.hcl"
--- PASS: TestEnvHCLProjectsExternalChilds (0.39s)
=== RUN   TestEnvHCLProjectsAllChilds
time="2023-12-12T15:35:03+01:00" level=info msg="Could not find an old config file. Starting from scratch"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child/deep/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/invalid_parent_module/child"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/network-account/eu-west-1/network/transit-gateway/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/network-account/eu-west-1/network"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/_global/route53/test-zone/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/_global"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/env-a/network/vpc/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/multi_accounts_vpc_route53_tgw/prod/eu-west-1/env-a"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra/network/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra/apps/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/infra"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage/network/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage/dbs/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/eu-south-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global/iam/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global/dns/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/no_terraform_blocks/myproject/global"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/qa"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_atlantis_locals/non-prod/us-east-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/qa"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/project_hcl_with_project_marker/non-prod/us-east-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/mysql/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/qa"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage/mysql/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/non-prod/us-east-1/stage"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/mysql/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod/webserver-cluster/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created env.hcl project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/terragrunt-infrastructure-live-example/prod/us-east-1/prod"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_does_not_specify/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/standalone_module_that_specifies_empty/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/dependency/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/different_workflow_names/defaultWorkflow/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_does_not_override/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/apply_requirements_overrides/child_that_overrides/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/chained_dependencies/depender_on_depender/nested/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/basic_module/terragrunt.hcl"
time="2023-12-12T15:35:03+01:00" level=info msg="Created project for /Users/komor/repos/physitrack/terragrunt-atlantis-config/test_examples/autoplan/set_in_parent/terragrunt.hcl"
time="2023-1…
  • Loading branch information
aokomorowski authored Jan 26, 2024
1 parent 8b2463c commit 5c8b256
Show file tree
Hide file tree
Showing 5 changed files with 993 additions and 484 deletions.
14 changes: 5 additions & 9 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
log "github.com/sirupsen/logrus"

"github.com/ghodss/yaml"
"github.com/gruntwork-io/terragrunt/cli"
"github.com/gruntwork-io/terragrunt/config"
"github.com/gruntwork-io/terragrunt/options"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -259,7 +258,7 @@ func getDependencies(path string, terragruntOptions *options.TerragruntOptions)
}

depPath := dep
terrOpts, _ := options.NewTerragruntOptions(depPath)
terrOpts, _ := options.NewTerragruntOptionsWithConfigPath(depPath)
terrOpts.OriginalTerragruntConfigPath = terragruntOptions.OriginalTerragruntConfigPath
childDeps, err := getDependencies(depPath, terrOpts)
if err != nil {
Expand Down Expand Up @@ -319,12 +318,11 @@ func getDependencies(path string, terragruntOptions *options.TerragruntOptions)

// Creates an AtlantisProject for a directory
func createProject(sourcePath string) (*AtlantisProject, error) {
options, err := options.NewTerragruntOptions(sourcePath)
options, err := options.NewTerragruntOptionsWithConfigPath(sourcePath)
if err != nil {
return nil, err
}
options.OriginalTerragruntConfigPath = sourcePath
options.RunTerragrunt = cli.RunTerragrunt
options.Env = getEnvs()

dependencies, err := getDependencies(sourcePath, options)
Expand Down Expand Up @@ -439,11 +437,10 @@ func createHclProject(sourcePaths []string, workingDir string, projectHcl string
terraformVersion := defaultTerraformVersion

projectHclFile := filepath.Join(workingDir, projectHcl)
projectHclOptions, err := options.NewTerragruntOptions(workingDir)
projectHclOptions, err := options.NewTerragruntOptionsWithConfigPath(workingDir)
if err != nil {
return nil, err
}
projectHclOptions.RunTerragrunt = cli.RunTerragrunt
projectHclOptions.Env = getEnvs()

locals, err := parseLocals(projectHclFile, projectHclOptions, nil)
Expand Down Expand Up @@ -496,11 +493,10 @@ func createHclProject(sourcePaths []string, workingDir string, projectHcl string

// build dependencies for terragrunt childs in directories below project hcl file
for _, sourcePath := range sourcePaths {
options, err := options.NewTerragruntOptions(sourcePath)
options, err := options.NewTerragruntOptionsWithConfigPath(sourcePath)
if err != nil {
return nil, err
}
options.RunTerragrunt = cli.RunTerragrunt
options.Env = getEnvs()

dependencies, err := getDependencies(sourcePath, options)
Expand Down Expand Up @@ -577,7 +573,7 @@ func createHclProject(sourcePaths []string, workingDir string, projectHcl string

// Finds the absolute paths of all terragrunt.hcl files
func getAllTerragruntFiles(path string) ([]string, error) {
options, err := options.NewTerragruntOptions(path)
options, err := options.NewTerragruntOptionsWithConfigPath(path)
if err != nil {
return nil, err
}
Expand Down
5 changes: 3 additions & 2 deletions cmd/parse_hcl.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/gruntwork-io/go-commons/errors"
"github.com/gruntwork-io/terragrunt/config"
"github.com/gruntwork-io/terragrunt/errors"
"github.com/gruntwork-io/terragrunt/options"
"github.com/gruntwork-io/terragrunt/util"
"github.com/hashicorp/hcl/v2"
Expand Down Expand Up @@ -90,7 +90,7 @@ func decodeHcl(
}
}

evalContext, err := config.CreateTerragruntEvalContext(filename, terragruntOptions, extensions)
evalContext, err := extensions.CreateTerragruntEvalContext(filename, terragruntOptions)
if err != nil {
return err
}
Expand Down Expand Up @@ -124,6 +124,7 @@ func decodeAsTerragruntInclude(
// The key signifiers of a parent are:
// - no include statement
// - no terraform source defined
//
// If both of those are true, it is likely a parent module
func parseModule(path string, terragruntOptions *options.TerragruntOptions) (isParent bool, includes []config.IncludeConfig, err error) {
configString, err := util.ReadFileAsString(path)
Expand Down
2 changes: 1 addition & 1 deletion cmd/parse_locals.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package cmd
// parses the `locals` blocks and evaluates their contents.

import (
"github.com/gruntwork-io/go-commons/errors"
"github.com/gruntwork-io/terragrunt/config"
"github.com/gruntwork-io/terragrunt/errors"
"github.com/gruntwork-io/terragrunt/options"
"github.com/gruntwork-io/terragrunt/util"
"github.com/hashicorp/hcl/v2"
Expand Down
215 changes: 200 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,23 +1,208 @@
module github.com/transcend-io/terragrunt-atlantis-config

go 1.16
go 1.21

toolchain go1.21.3

require (
github.com/bmatcuk/doublestar v1.3.1 // indirect
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
github.com/go-errors/errors v1.1.1 // indirect
github.com/gruntwork-io/terragrunt v0.36.6
github.com/hashicorp/go-getter v1.5.11
github.com/hashicorp/hcl/v2 v2.11.1
github.com/gruntwork-io/go-commons v0.17.1
github.com/gruntwork-io/terragrunt v0.54.1
github.com/hashicorp/go-getter v1.7.1
github.com/hashicorp/hcl/v2 v2.17.0
github.com/hashicorp/terraform-config-inspect v0.0.0-20210625153042-09f34846faab
github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c // indirect
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.2.1
github.com/stretchr/testify v1.8.4
github.com/zclconf/go-cty v1.13.2
golang.org/x/sync v0.4.0
)

require (
cloud.google.com/go v0.110.10 // indirect
cloud.google.com/go/compute v1.23.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.3 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
filippo.io/age v1.0.0 // indirect
github.com/AlecAivazis/survey/v2 v2.3.4 // indirect
github.com/Azure/azure-sdk-for-go v63.3.0+incompatible // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.26 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect
github.com/Azure/go-autorest/autorest/azure/auth v0.5.11 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20220407094043-a94812496cf5 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/apparentlymart/go-versions v1.0.1 // indirect
github.com/armon/go-metrics v0.3.10 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
github.com/atomicgo/cursor v0.0.1 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aws/aws-sdk-go v1.46.6 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/bmatcuk/doublestar v1.3.1 // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/charmbracelet/bubbles v0.16.1 // indirect
github.com/charmbracelet/bubbletea v0.24.2 // indirect
github.com/charmbracelet/glamour v0.6.0 // indirect
github.com/charmbracelet/lipgloss v0.9.1 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/creack/pty v1.1.17 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/dlclark/regexp2 v1.4.0 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/gitsight/go-vcsurl v1.0.1 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-ozzo/ozzo-validation v3.6.0+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-github/v35 v35.3.0 // indirect
github.com/google/go-jsonnet v0.18.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/gookit/color v1.5.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/goware/prefixer v0.0.0-20160118172347-395022866408 // indirect
github.com/gruntwork-io/boilerplate v0.5.7 // indirect
github.com/gruntwork-io/gruntwork-cli v0.7.0 // indirect
github.com/gruntwork-io/terratest v0.41.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.10 // indirect
github.com/hashicorp/go-retryablehttp v0.7.0 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.3 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl v1.0.1-vault // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform v0.15.3 // indirect
github.com/hashicorp/terraform-registry-address v0.2.0 // indirect
github.com/hashicorp/terraform-svchost v0.0.1 // indirect
github.com/hashicorp/vault/api v1.5.0 // indirect
github.com/hashicorp/vault/sdk v0.4.1 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/mattn/go-zglob v0.0.2 // indirect
github.com/sirupsen/logrus v1.6.0
github.com/spf13/cobra v0.0.5
github.com/stretchr/testify v1.7.0
github.com/urfave/cli v1.22.4 // indirect
github.com/zclconf/go-cty v1.8.3
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
gopkg.in/ini.v1 v1.57.0 // indirect
github.com/inancgumus/screen v0.0.0-20190314163918-06e984b86ed3 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jessevdk/go-flags v1.5.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jstemmer/go-junit-report v1.0.0 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/klauspost/compress v1.15.11 // indirect
github.com/lib/pq v1.10.5 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-zglob v0.0.3 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/microcosm-cc/bluemonday v1.0.21 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/mitchellh/panicwrap v1.0.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/owenrumney/go-sarif v1.1.1 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/pterm/pterm v0.12.41 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/sahilm/fuzzy v0.1.0 // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/sourcegraph/go-lsp v0.0.0-20200429204803-219e11d77f5d // indirect
github.com/sourcegraph/jsonrpc2 v0.2.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/terraform-linters/tflint v0.47.0 // indirect
github.com/terraform-linters/tflint-plugin-sdk v0.17.0 // indirect
github.com/terraform-linters/tflint-ruleset-terraform v0.4.0 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/urfave/cli/v2 v2.25.5 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yuin/goldmark v1.5.2 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
github.com/zclconf/go-cty-yaml v1.0.3 // indirect
go.mozilla.org/gopgagent v0.0.0-20170926210634-4d7ea76ff71a // indirect
go.mozilla.org/sops/v3 v3.7.3 // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.13.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.149.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/urfave/cli.v1 v1.20.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
Loading

0 comments on commit 5c8b256

Please sign in to comment.