-
Notifications
You must be signed in to change notification settings - Fork 774
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
Strongly-typed ResourceID #3230
Comments
Great suggestion! |
I'm interested in using these ResourceID objects in the resource foo 'foo@date' existing = {
id = ResourceID
} This would be a convenient way for modules to reference things created by other modules. |
I don't know if we have a great way to identify ID fields returned by resources. The specific field mentioned by @stan-sz ( |
Is your feature request related to a problem? Please describe.
Given a full resource ID to a child resource have the ability to create a resource ID of the parent.
Excerpted from #3173: some RPs provide a full resource ID to some other (child) resources. For example: Microsoft.Network/loadBalancers provides the full ip configuration resource ID in its properties 'backendAddressPools[0].properties.backendIPConfigurations[0].id' as:
Describe the solution you'd like
Idea 1: have a type
resourceID
that can be initiated using a string (or the output of*resourceId()
function). The type could allow.parent
to obtain the parent resource ID.Idea 2: similar to above but using a new
parentResourceId(<child resource ID>)
functionThe text was updated successfully, but these errors were encountered: