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

Support "resource()" function to get a existing resource reference in one line/as a property value #2054

Closed
alex-frankel opened this issue Mar 29, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@alex-frankel
Copy link
Collaborator

Related to #1722

Something like:

param parentResourceName

resource foo 'my.rp/parent/child' = {
  parent: resource('my.rp/parent', parentResourceName)
}

Should also support a full resourceId

param parentResourceId string

resource foo 'my.rp/parent/child' = {
  parent: resource(parentResourceId)
}
@alex-frankel alex-frankel added the enhancement New feature or request label Mar 29, 2021
@alex-frankel alex-frankel added this to the v0.4 milestone Mar 29, 2021
@alex-frankel alex-frankel modified the milestones: v0.4, v0.5 Jun 3, 2021
@anthony-c-martin
Copy link
Member

Duplicate of #2245

@anthony-c-martin anthony-c-martin marked this as a duplicate of #2245 Nov 9, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants