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

Question: can lifecycled process requests for other instances? #80

Open
ketzacoatl opened this issue Aug 29, 2019 · 4 comments
Open

Question: can lifecycled process requests for other instances? #80

ketzacoatl opened this issue Aug 29, 2019 · 4 comments

Comments

@ketzacoatl
Copy link

One use case for lifecycled is that you run it on all EC2 instances, and when an instance terminates, you run the action on the instance that is terminating.

Another use case is to run those actions on a single/central management instance, rather than the instance that is terminating. There might be a variety of reasons for this, such as reliability, management access or permissions constraints in the env.

With a review of the go code, it seems lifecycled is restricting actions to the instance it is running on, is that true?

@qrilka
Copy link

qrilka commented Aug 29, 2019

#79 is somewhat related to this issue

@itsdalmo
Copy link
Contributor

With a review of the go code, it seems lifecycled is restricting actions to the instance it is running on, is that true?

Yep, each instance will only act on termination events that are targeting its own instance ID. The difficulty with running it centrally is that you'd need another way to initiate the shutdown script on the host that is being terminated, which I believe would increase complexity a lot 🤔

@ketzacoatl
Copy link
Author

The difficulty with running it centrally is that you'd need another way to initiate the shutdown script on the host that is being terminated, which I believe would increase complexity a lot 🤔

For some use cases, the actions taken are with a central system and can be run from a single instance responsible for running a tool like lifecycled.

@ketzacoatl
Copy link
Author

ketzacoatl commented Sep 23, 2021

@itsdalmo would making the filter optional be enough to make this a reality?

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

No branches or pull requests

3 participants