Open jsimpso opened 3 months ago
@jsimpso would you expect a list like unit-addresses = ["192.168.0.1","192.168.0.2"] or a map like unit-address {"unit/0" = "192.168.0.1", "unit/1" = "192.168.0.2"} ? Is this expected to be used in another resource?
@jsimpso would you expect a list like unit-addresses = ["192.168.0.1","192.168.0.2"] or a map like unit-address {"unit/0" = "192.168.0.1", "unit/1" = "192.168.0.2"} ?
I was imagining a list, but more data is never a bad idea!
Is this expected to be used in another resource?
Yep, I'm prototyping something to tie these units in to an external loadbalancer at the moment, and being able to reference the addresses of the deployed application would make that much easier!
Requirements
I'd like to be able to reference the "public-address" value for units of an application directly from the Terraform resource for that application.
For example, this is what we currently have in state for an example application:
Having the
public-address
info for each deployed unit would be very useful. Or maybe we could record the unit names under the application object instead, and add a separateunit
data source to look these up?Thanks!
Urgency
Casually wishlisting
Notes & References
No response