aws-cdk
aws-cdk copied to clipboard
ec2.Instance provide static method like VPC fromLookup for `Instance` by tag or other filter
:rocket: Feature Request
General Information
- [x] :wave: I may be able to implement this feature request
- [ ] :warning: This feature might incur a breaking change
Description
Can we provide ec2.Instance static method fromLookup like ec2.VCP fromLookup ? I think it's very useful for quick get ec2 instance from exits ec2 instances.
Proposed Solution
Environment
- CDK CLI Version: 1.6.1
- Module Version: 1.6.1
- OS: all
- Language: all
Other information
Its been almost a year... any chance this feature will added to the ec2 Instance?
Same here. I am running into this as well
+1
+1
+1
+1
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue.
We really need this man....in my CDK I need to target an existing EC2 instance in my targetgroup, is there a way to lookup the EC2 instance using the id or name?
@maggoun If you want to register instances whose IDs are known to target group, you can use the InstanceIdTarget.
Is this capability enabled in CDK?
my case ec2 is a bastion host and it is not a target instance to any LB.
please suggest
Any news on this?
+1
+1