aws / aws/aws-cdk

enable lookupXXX functions for cross account

Open
#19,968 1 comment 2 reactions 0 assignees View on GitHub
@aws-cdk/aws-lambda @aws-cdk/core effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

It would be great to be able to lookup resources in another account.

### Use Case

For some x-acc access you might want to reference a resource in another AWS account and still use lookup to get the reference.

Examples could be SQS, SNS, Buckets, or HostedZones

### Proposed Solution

`fromLookup` takes optional parameters that specify the AWS environment to do the lookup in. Prereq would be the target account trusting lookups of the stack account.

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

v2

### Environment details (OS name and version, etc.)

All

Contributor guide

Open the contributing guide

Research direction

The issue names the fromLookup APIs and examples including SQS, SNS, buckets, and hosted zones, but no files or tests. Start by locating those lookup implementations and their existing environment handling; done means supported lookupXXX functions can query a trusted target account without breaking current same-account behavior.

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
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.