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

feat: add ec2 lifecycle check to sh script #83

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

Conversation

clariccia
Copy link
Contributor

Now prepare_forward script is able to perform actions based on EC2 instance state.

Lifecycle actions

  1. EC2 is running then the script only starts SSM tunnel connection
  2. EC2 is stopped then script starts the EC2 instance and poll its state until it will be running. At the end the script starts the SSM tunnel
  3. EC2 is in another state (like shutting_down) then the script exits telling the current state to the user

now prepare_forward script is able to perform actions based on EC2 instance state
@clariccia clariccia requested a review from ViVeniero July 12, 2024 08:22
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.

2 participants