Skip to content
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

Implement minimal debug feature #1263

Merged
merged 14 commits into from
Aug 3, 2020
Merged

Implement minimal debug feature #1263

merged 14 commits into from
Aug 3, 2020

Conversation

yorinasub17
Copy link
Contributor

This takes #1137 and reduces the scope to just outputting a workable tfvars file. This should be the minimal increment for a usable debug command that should significantly improve status quo.

cli/debug.go Outdated Show resolved Hide resolved
// account all the generated sources.
func terraformModuleVariables(terragruntOptions *options.TerragruntOptions) ([]string, error) {
modulePath := terragruntOptions.WorkingDir
module, diags := tfconfig.LoadModule(modulePath)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this library makes this super easy, nice!

cli/debug.go Show resolved Hide resolved
@yorinasub17
Copy link
Contributor Author

Closing in favor of #1267

@yorinasub17 yorinasub17 reopened this Aug 1, 2020
@yorinasub17
Copy link
Contributor Author

Reopened given #1267 (comment)

@yorinasub17
Copy link
Contributor Author

yorinasub17 commented Aug 1, 2020

@brikis98 any objections to merging this version of debug mode in? This is the original implementation, where it doesn't touch the main way terragrunt passes vars, and instead introduces debug mode as a way to emit the tfvars json file.

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@yorinasub17
Copy link
Contributor Author

Thanks for review! Merging and releasing now.

@yorinasub17 yorinasub17 merged commit 2523967 into master Aug 3, 2020
@yorinasub17 yorinasub17 deleted the pull-request-1137 branch August 3, 2020 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants