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

Networking TF: Added EC2 Instance Connect Endpoint (EICE) #526

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

victorskl
Copy link
Member

@victorskl victorskl commented Jan 6, 2025

  • You may typically want to EICE enabled private network Security Group
    which can be looked up name ssh_from_eice. Add this SG to your VM
    instance created in private subnet. Then you no longer need public IP
    to connect to this instance. Just need to do like so.

    aws ec2-instance-connect ssh --connection-type eice --os-user [ubuntu|ec2-user] --instance-id [i-1234567replace]
    

    Or, punch local tunnel like so:

    aws ec2-instance-connect open-tunnel --instance-id [i-1234567replace] --local-port 2222
    

* You may typically want to EICE enabled private network Security Group
  which can be looked up name `ssh_from_eice`. Add this SG to your VM
  instance created in private subnet. Then you no longer need public IP
  to connect to this instance. Just need to do like so.

  aws ec2-instance-connect ssh --connection-type eice --os-user <ubuntu|ec2-user> --instance-id <i-1234567replace>

  Or, punch local tunnel like so:

  aws ec2-instance-connect open-tunnel --instance-id <i-1234567replace> --local-port 2222
@victorskl victorskl self-assigned this Jan 6, 2025
@victorskl victorskl linked an issue Jan 6, 2025 that may be closed by this pull request
@victorskl victorskl added the feature New feature or request label Jan 6, 2025
@victorskl
Copy link
Member Author

victorskl commented Jan 6, 2025

Patto, just FYI. I will replace the EICE you created in Dev account awhile ago with the resource from this stack. As EICE is limited to 1 resource per subnet per VPC.

Copy link
Member

@andrewpatto andrewpatto left a comment

Choose a reason for hiding this comment

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

Looks good - good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provision EC2 Instance Connect Endpoint at VPC Networking stack
2 participants