aws / aws/aws-cdk

ec2.Instance provide static method like VPC fromLookup for `Instance` by tag or other filter

Open
#3,911 16 comments 36 reactions 0 assignees View on GitHub
@aws-cdk/aws-ec2 effort/medium feature-request p1
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

## :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

Contributor guide

Open the contributing guide

Research direction

Start by examining the existing ec2.VPC.fromLookup API and the surrounding EC2 lookup behavior. Define how an Instance lookup by tag or another filter should be selected and verified, then confirm the feature’s expected API and tests with maintainers before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.