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

The DevOps Way #277

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

The DevOps Way #277

wants to merge 2 commits into from

Conversation

frank-bee
Copy link

@frank-bee frank-bee commented May 23, 2024

Use terraform in a completely use-less way to exit vim ;-)

fixes #278

}

resource "aws_instance" "example" {

Choose a reason for hiding this comment

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

Use null resources instead

Copy link
Author

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" ;-)

Copy link
Author

Choose a reason for hiding this comment

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

}

provisioner "local-exec" {

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

Copy link
Author

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

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.

The DevOps way
2 participants