Been trying to taint a resource in a module without any success. I don't understand what the path is supposed to be for the -module=path option. Is the path suppose to be the module name in the root or the source path the module?
My modules are in a folder.
-- prod
-- module
-- product
-- feature
module "product" {
source = "../modules/product"
}
module "feature" {
source = "feature"
}
My understanding is the following should work
/prod $ terraform taint -module=product.feature proxy
The module root.product.feature could not be found. There is nothing to taint.
/prod $ terraform taint -module=product proxy
The module root.product could not be found. There is nothing to taint.