4 ms·
The most sensible way I’ve used TF was to create an api for others to consume, containing models of terraform modules. Users can pick and chose what modules, h
by jordanbeiber 7y ago
The most sensible way I’ve used TF was to create an api for others to consume, containing models of terraform modules.
Users can pick and chose what modules, how many and set some params which are then validated.
The components are then rendered as json, fully declarative, no counts, no fancy TF hacks.
Data sources and a couple of home grown providers take care of whatever needs to be dynamic.
This way a lot of foot-guns are removed for consumers, and it simplifies the whole thing.
At the expense of writing some code... worth it though, in a more enterprisey setting.