Get the original Aspire resource name in an InfrastructureResolver #11927
-
Hi, Can we get the original Aspire resource name of a construct that we created in the app host via I found a way of grabbing it through tags, is this the way to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
That's the only way currently. The ProvisionableResource currently isn't attached to a parent infrastructure object so that makes it difficult to backtrack at the moment. We'll try to improve this going forward. |
Beta Was this translation helpful? Give feedback.
-
@davidfowl Follow-up question: can we get the current environment name that is being used when provisioning or generating infra files with I'm trying to suffix |
Beta Was this translation helpful? Give feedback.
-
OK I can see that |
Beta Was this translation helpful? Give feedback.
That's the only way currently. The ProvisionableResource currently isn't attached to a parent infrastructure object so that makes it difficult to backtrack at the moment. We'll try to improve this going forward.