terraform-ibm-modules / terraform-ibm-toolkit-object-storage-bucket

Terraform module to provision a bucket in Object Storage
0 stars 4 forks source link

object_versioning not defined in the deployment, causes bucket to be updated on every apply #24

Closed mrshah-at-ibm closed 2 years ago

mrshah-at-ibm commented 3 years ago

Logs:

  # module.workload_flow_log_bucket.ibm_cos_bucket.bucket_instance[0] will be updated in-place
  ~ resource "ibm_cos_bucket" "bucket_instance" {
        allowed_ip           = [
            "10.12.121.239",
            "10.249.205.87",
            "10.16.249.139",
            "0.0.0.0/0",
        ]
        bucket_name          = "mrs4-workload-flow-logs"
        crn                  = "crn:v1:bluemix:public:cloud-object-storage:global:a/ad5d072102214f4395eab22f03bbb2f9:e185bbb9-c2ab-4065-a1c4-fcad12b08fa0:bucket:mrs4-workload-flow-logs"
        endpoint_type        = "public"
        force_delete         = true
        id                   = "crn:v1:bluemix:public:cloud-object-storage:global:a/ad5d072102214f4395eab22f03bbb2f9:e185bbb9-c2ab-4065-a1c4-fcad12b08fa0:bucket:mrs4-workload-flow-logs:meta:rl:us-south:public"
        key_protect          = "crn:v1:bluemix:public:hs-crypto:us-south:a/ad5d072102214f4395eab22f03bbb2f9:40c0734c-0c17-42fe-b7bb-a86cf9755bd1:key:f87f77f5-7637-464b-ada1-31d2270580c0"
        region_location      = "us-south"
        resource_instance_id = "crn:v1:bluemix:public:cloud-object-storage:global:a/ad5d072102214f4395eab22f03bbb2f9:e185bbb9-c2ab-4065-a1c4-fcad12b08fa0::"
        s3_endpoint_private  = "s3.private.us-south.cloud-object-storage.appdomain.cloud"
        s3_endpoint_public   = "s3.us-south.cloud-object-storage.appdomain.cloud"
        storage_class        = "standard"

      - object_versioning {
          - enable = false -> null
        }
    }