aws / aws/aws-elastic-beanstalk-cli
Support SSH to private IP
- Dominant language
- Python
- Stars
- 181
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
## Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request. If you are interested in working on this issue or have submitted a pull request, please leave a comment.
### Tell us about your request
Add an option to `eb ssh` to always SSH to the internal IP if it exists.
OR
If the instance has no public address, SSH to the internal IP (rather than internal hostname).
### Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Our instances exist in private networks and the internal hostname cannot be resolved outside. However we have set up a VPN which allows developers to run `ssh 10.1.1.1` from their local machine and connect to EB instances. However, `eb ssh` by default uses the internal AWS hostnames like `ip-10-1-1-1.ap-northeast-1.compute.internal` which do not resolve outside the VPC.
### Are you currently working around this issue?
Wrote our own shell script to do this.
### How are you currently solving this problem?
### Additional context
Anything else we should know?
Place to implement fix:
https://github.com/aws/aws-elastic-beanstalk-cli/blob/ad4f92cf1be6fbb0d2b1e365514a6c5e5c1b144d/ebcli/operations/sshops.py#L86
### Attachments
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information).
Contributor guide
Assessment
This issue has not been assessed yet.