-
Notifications
You must be signed in to change notification settings - Fork 316
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
The DevOps Way #277
base: master
Are you sure you want to change the base?
The DevOps Way #277
Conversation
} | ||
|
||
resource "aws_instance" "example" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use null resources instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idea was to launch a real instance ,( run vim, ) check if is running and report this back to terraform ( via output).
afterwards destroy the instance in case vim was running.
but I didn't test it, just wrote the code "from head to terminal" ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
||
provisioner "local-exec" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add destroy time provider or nothing will be killed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
privisioner should be used only to detect if vim is running. destroy is running in some terminal , some shell
Use terraform in a completely use-less way to exit vim ;-)
fixes #278