Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
use self variables in module definition #1667
Basically I am using modules to define a cluster with each in a different availability zone. One of the variables I define is the availability_zones that is used in the module. I also use the variable subnet_id which I have set per availability zone. The problem is, it I need to send the correct subnet_id based on what availability_zone set is. How can I do that.
Here's the module:
I can get past this, by using
There have been other issues about this. Its unlikely we'll ever be able to really do this given the current architecture. It'd be a nice to have but I don't see a way to get it done in any near or mid-term release (3, 6, 9 months). I'm going to close at "wontfix" for now. Maybe we can swing back one day.