oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
758 stars 681 forks source link

Changing `oci_streaming_stream_pool` from private to public does not recreate the resource #2054

Open lra opened 8 months ago

lra commented 8 months ago

Community Note

Terraform Version and Provider Version

Terraform v1.7.4
on darwin_arm64
+ provider registry.terraform.io/oracle/oci v5.31.0

Affected Resource(s)

oci_streaming_stream_pool

Terraform Configuration Files

Going from:

resource "oci_streaming_stream_pool" "this" {
  compartment_id = oci_identity_compartment.this.id
  name           = "kafka"

  kafka_settings {
    auto_create_topics_enable = false
    log_retention_hours       = 7 * 24
    num_partitions            = 1
  }

  private_endpoint_settings {
    subnet_id = oci_core_subnet.private.id
  }
}

To:

resource "oci_streaming_stream_pool" "this" {
  compartment_id = oci_identity_compartment.this.id
  name           = "kafka"

  kafka_settings {
    auto_create_topics_enable = false
    log_retention_hours       = 7 * 24
    num_partitions            = 1
  }
}

Expected Behavior

Terraform plan should recreate the oci_streaming_stream_pool resource.

Actual Behavior

The plan is showing no change: No changes. Your infrastructure matches the configuration.

Steps to Reproduce

  1. Save 1st file
  2. terraform apply
  3. Change the content to the second file, removing the private_endpoint_settings block
  4. terraform plan
tf-oci-pub commented 8 months ago

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.