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

Dry run and Verbose/debug modes for Providers and Provisioners #311

Closed
delitescere opened this issue Sep 19, 2014 · 4 comments
Closed

Dry run and Verbose/debug modes for Providers and Provisioners #311

delitescere opened this issue Sep 19, 2014 · 4 comments

Comments

@delitescere
Copy link

Particularly with AWS, there are constantly spurious API glitches that occur. Some actions aren't idempotent. Unfortunately there are also problems with the AWS provider refreshing of state.

I'd like to be able to see what API calls were made by the provider to better diagnose what led to the failure. The same goes for provisioners to make sure the paths and commands are as expected after interpolation occurs.

It would also be beneficial for a dry run mode to show what API calls and provisioner actions would be taken.

This allows for much better visibility under the declarative hood when stuff doesn't work as it should.

@ShonM
Copy link

ShonM commented Sep 29, 2014

I'd love this. Currently, the only thing I'm seeing from a bad provision is:

Error applying plan:

1 error(s) occurred:

* Script exited with non-zero exit status: 2

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Just seeing the last command executed would be a great help here

@mitchellh
Copy link
Contributor

This will make it into 0.3 most likely. All the core foundation to support this was put in place in the past week.

@delitescere
Copy link
Author

Legend!

Noting that most of the problems' root cause originates with AWS... ;-)

@mitchellh
Copy link
Contributor

Done. See commits above for where it was done. Both local and remote exec provisioners mirror their stdout/stderr.

@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants