You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestStep.Config uses strings to represent terraform configuration. There is no guarantee that the configuration that is supplied is valid. TestStep.ConfigDirectory, and TestStep.ConfigFile provide for supplying terraform configuration in either a directory, or a file, respectively, but do not validate the configuration before it is executed.
Proposal
The terraform configuration supplied through Config, ConfigDirectory, or ConfigFile could be validate using terraform validate prior to execution, and errors raised if the configuration is invalid.
Does terraform plan output configuration validation issues differently than terraform validate? My understanding is that validation has to occur during plan/apply anyways, since it needs to fully read the configuration. Running a separate provider-required command also means that provider plugins will need to an additional start-stop.
terraform-plugin-testing version
Use cases
TestStep.Config
uses strings to represent terraform configuration. There is no guarantee that the configuration that is supplied is valid. TestStep.ConfigDirectory, and TestStep.ConfigFile
provide for supplying terraform configuration in either a directory, or a file, respectively, but do not validate the configuration before it is executed.Proposal
The terraform configuration supplied through
Config
,ConfigDirectory
, orConfigFile
could be validate usingterraform validate
prior to execution, and errors raised if the configuration is invalid.References
The text was updated successfully, but these errors were encountered: