aws / aws-cdk-rfcs

RFCs for the AWS CDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"fromLookup" for additional resources

thibaut-pro opened this issue · comments

This is a request for AWS CDK to support selectors (a la jQuery/CSS) for resources that would enable me to import existing resources by type and tag.

Use Case

I would like to reference existing resources (https://docs.aws.amazon.com/cdk/latest/guide/resources.html) but I don't necessarily know the resource ARN. VPCs support lookups already but I would like to see that expanded to other AWS constructs.

Proposed Solution

This was mentioned in aws/aws-cdk#1136 (comment) which could be a starting point to implement generalized selectors.

Other

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

This is a 🚀 Feature Request

Transferring this to the RFC repo as this is a major feature.

Marking this RFCs as stale since there has been little recent activity and it is not currently close to getting accepted as-is. We appreciate the effort that has gone into this proposal. Marking an RFCs as stale is not a one-way door. If you have made substantial changes to the proposal, please open a new issue/RFC. You might also consider raising a PR to aws/aws-cdk directly or self-publishing to Construct Hub.