Skip to content

Lookup string in object using outputs #5029

Answered by alex-frankel
dkooll asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, there is not an optimal way to do this today. Are you looking to get the resource Id of the subnets? One common option is to construct an output like so:

output snet1Id string = '${vnet.id}/subnets/snet1'

There is a proposal to manage subnets exclusively as child resources instead of an array property on the parent vnet that would make this easier, but no ETA for if/when that would be completed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dkooll
Comment options

Answer selected by dkooll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants