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

EC2 Instance Connect Endpoint: new connection method #26226

Closed
1 of 2 tasks
khaitranhq opened this issue Jul 4, 2023 · 7 comments
Closed
1 of 2 tasks

EC2 Instance Connect Endpoint: new connection method #26226

khaitranhq opened this issue Jul 4, 2023 · 7 comments
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed.

Comments

@khaitranhq
Copy link

Describe the feature

Please implement the new feature that AWS has just introduced: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect-Endpoint.html.

Use Case

I see that this feature is very useful so so I hope that there should be a way to create EIC Endpoints programmatically.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.50.0

Environment details (OS name and version, etc.)

Debian 10

@khaitranhq khaitranhq added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 4, 2023
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Jul 4, 2023
@peterwoodworth
Copy link
Contributor

Is this supported by CloudFormation yet? We will depend on CloudFormation support first

@peterwoodworth peterwoodworth added effort/medium Medium work item – several days of effort needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. and removed needs-triage This issue or PR still needs to be triaged. labels Jul 5, 2023
@awsdataarchitect
Copy link

awsdataarchitect commented Jul 18, 2023

Additionally, instance connect endpoint is not working on an instance (on al2023) running on a dedicated host A1. it works on other ec2 (al2)which is not on dedicated host and using same eic endpoint in same subnet. please advice if any known issue with al2023 and eice?

just hangs here on websocket
Websocket Closure Reason: Unable to connect to target
ssh_exchange_identification: Connection closed by remote host

debug---

OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data /.ssh/config
debug1: Executing proxy command: exec aws ec2-instance-connect open-tunnel --instance-id "" --private-ip-address 10.0.0.xx --remote-port 22 --instance-connect-endpoint-id eice --instance-connect-endpoint-dns-name eice-.ec2-instance-connect-endpoint.us-east-1.amazonaws.com
debug1: identity file C:\\private-key type -1
debug1: identity file C:\\private-key-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1

@neilferreira
Copy link
Contributor

It looks like support for this exists on CloudFormation now https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html

@badmintoncryer
Copy link
Contributor

badmintoncryer commented Oct 2, 2023

It looks like support for this exists on CloudFormation now https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html

Thanks!
For reference, here is the L1 Construct document on CDK.
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnInstanceConnectEndpoint.html

@lart2150
Copy link

lart2150 commented Oct 2, 2023

Looks like it was added in 2.97.0!

@badmintoncryer
Copy link
Contributor

You can use the EIC Endpoint L2 construct at open-constructs/aws-cdk which is a community driven CDK construct library.

It is more usuful than L1.

Copy link

github-actions bot commented May 9, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed.
Projects
None yet
Development

No branches or pull requests

6 participants