Skip to content

Removed block - instance support #34439

Open
@drandell

Description

@drandell

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions