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

all plan --output and all up --plan options #197

Merged
merged 1 commit into from
Jan 30, 2022
Merged

Conversation

tongueroo
Copy link
Contributor

@tongueroo tongueroo commented Jan 30, 2022

This is a πŸ™‹β€β™‚οΈ feature or enhancement.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

  • value processed by expander

Using Plans

Using plan output path. You can specify an output path for the plan that contains pattern for expansion. Example:

terraspace all plan --out "plans/:MOD_NAME.plan"

You can then use this later in terraspace up:

terraspace all up --plan "plans/:MOD_NAME.plan"

Context

Closes #156

How to Test

See using plans above.

Version Changes

Patch

* value processed by expander
@tongueroo tongueroo merged commit 1ca370b into master Jan 30, 2022
@tongueroo tongueroo deleted the all-plan-out branch January 30, 2022 00:59
@tongueroo
Copy link
Contributor Author

Released in 1.1.0

@frankabee
Copy link

frankabee commented Feb 15, 2022

@tongueroo I have currently an issue with the new terraspace all plan feature. In the logs it looks like the
terraform plan -input=false -out plans/example-stack.plan
is executed 4 times for each stack. This means, for an overall setup with 3 modules, the command is executed 12 times.

In the timestamps in the log I can see that this is not a repetition of the log itself, the timestamps differ for each execution.

I am using terraspace like this:

terraspace all plan --yes --out=plans/:MOD_NAME.plan

Using the logfiles directly from log/plan/ directory.

Version of Terraspace is 1.1.1

Can you confirm or deny this behaviour? Thanks 🌡

Small update from my side: Is it possible, that the log is ammending the files when rerun? Looks to me like that after investigating the issue.

This pull request was closed.
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.

Allow writing output of plan files from terraspace all command
2 participants