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

First-class EC2 support #41

Open
BohdanPetryshyn opened this issue Jun 3, 2023 · 0 comments
Open

First-class EC2 support #41

BohdanPetryshyn opened this issue Jun 3, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@BohdanPetryshyn
Copy link
Collaborator

Summary

Currently, users must use the custom connection target approach to connect to services running on EC2 instances. This involves manually setting up connectivity (at init time) and providing Basti with the target's IP and port (at connect time).

Solution

The first-class EC2 support could be implemented in the following way:

  1. User selects the EC2 instance and a port where the service is running during basti init
  2. The Basti access security group, which allows connection from the bastion instance to the target will have one ingress rule service (one ingress rule will be added per one basti init run)
  3. The per-service ingress rule will have the name of the service in the description (the
    user will be prompted for a name during initialization)
  4. When connecting, the user will be presented not only with the EC2 instances but with services running on those instances based on the ingress rules of the Basti access security group.

This includes:

  1. Detecting EC2 instances in the user's AWS account and presenting them during initialization
  2. EC2 instance initialization (setting up the access security group or reusing the existing one)
  3. Detecting services running on the EC2 instances by the Basti access SG and it's ingress rules
  4. EC2-related resources cleanup in basti cleanup command
@BohdanPetryshyn BohdanPetryshyn added enhancement New feature or request good first issue Good for newcomers labels Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant