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

[Enhancement] Add support to retrieve the key of a given node #476

Open
joshfried-aws opened this issue Mar 4, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@joshfried-aws
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Currently users are unable to retrieve the key of a given node. This is especially troublesome when working with cfn templates, and users want to operate on logical id(s). Currently there are some workarounds to achieve this (see this example from the registry), but it doesnt support all use cases.

Describe the solution you'd like

A function that provides the key of for a node(s). ex

let buckets = Resources.*[ type == "AWS::S3::Bucket" ]

%buckets {
  let bucket_key = key(this) 
  # do something with key
}

Additional context
#267

@ysdholak
Copy link

ysdholak commented Mar 7, 2024

We are facing the same issue. Having this functionality will def help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants