Open
Description
Terraform Version
v1.7.0-beta1
Use Cases
All of our internal modules accept more than one input either in the form of a list of objects or a map of objects. If a user accidentally deletes an object and ends up with state drift or there is a provider issue leading to some form of state drift (this is often apparent with some resources in GCP) then I should be able to remove that singular entity.
Attempted Solutions
N/A
Proposal
removed {
from = module.gcs.google_storage_bucket.this["my-single-bucket"]
lifecycle {
destroy = false
}
}
module "gcs" {
source = "drandell/cloud-storage/google"
version = "1.0.3"
buckets = {
#"my-single-bucket": {}, ## Lets presume this entity was deleted in GCP by a user and now leads to state drift
"my-other-bucket": {}
}
}
References
No response