A lot of us have encountered this before: I need to create multiple instances of a resource,
and we don't want to shoot ourselves in the foot with count
, so we want to use for_each.
We define our input as a map of object, each key representing a resource instance.
The key of the map will be the key of the resource in for_each
.