module.callers
: Use configuration as source of truth & indicate initialization
#1001
Labels
enhancement
New feature or request
modules
Functionality related to the module block and modules generally
Background
Currently clients use
module.callers
command to obtain a list of callers (if any) to help users choose where to runapply
orvalidate
since these commands cannot run without priorinit
.Additionally clients may also use this list as a list of paths where the user may decide to run
init
.Currently
module.callers
reports initialized module callers (as the data was read from.terraform
directory). This is only useful forapply
orvalidate
, not so much forinit
as clients can offer locations which to re-initialize, but not entirely uninitialized directories.It would still be useful if the client knew which module are initialized however, i.e. in which ones the user can run
apply
orvalidate
.Proposal
Update
module.callers
response, such that we reportis_initialized: bool
in addition to the URI of the module.Implementation Notes
Terraform CLI defines "initialized" module as one which
modules.json
manifest) and matching the constraints in the config.terraform
It may be useful to address the following issues first:
dev_overrides
#24The text was updated successfully, but these errors were encountered: