terraform-provider-opensearch icon indicating copy to clipboard operation
terraform-provider-opensearch copied to clipboard

[BUG] opensearch_channel_configuration config_id field change detected in TF plans

Open akennealy opened this issue 1 year ago • 6 comments

What is the bug?

Persistent Terraform plan change detected with field config_id

How can one reproduce the bug?

  1. Create a new opensearch_channel_configuration resource
resource "opensearch_channel_configuration" "escalations" {
  body = <<EOF
{
  "config": {
    "name": "name",
    "description": "description",
    "config_type": "slack",
    "is_enabled": true,
    "slack": {
      "url": "${var.slack_escalations_channel_webhook}"
    }
  }
}
EOF
}
  1. Plan and apply
  2. Then trigger a new plan
  3. Bug: The plan will try to remove the config_id field (That was added by OpenSearch dashboard)

What is the expected behavior?

No changes detected in plan

What is your host/environment?

Operating system, version.

Do you have any screenshots?

Screenshot of TF cloud UI showing diff

image

Do you have any additional context?

Add any other context about the problem.

akennealy avatar Sep 28 '23 19:09 akennealy

[Untriage] Hey @akennealy I assume you have tested with latest supported release of the provider? The opensearch_channel_configuration configuration was introduced by @alexconlin https://github.com/opensearch-project/terraform-provider-opensearch/pull/68, @alexconlin can you please a look and see whats this bug about ? Adding @rblcoder @afrodidact @premkirank Thank you

prudhvigodithi avatar Oct 09 '23 15:10 prudhvigodithi

@prudhvigodithi yes Im on the latest version.

akennealy avatar Oct 09 '23 15:10 akennealy

Hi @prudhvigodithi, can you assign this issue to me?

afrodidact avatar Oct 11 '23 01:10 afrodidact

Thanks assigned to your @afrodidact.

prudhvigodithi avatar Oct 11 '23 16:10 prudhvigodithi

Thanks!

afrodidact avatar Oct 13 '23 00:10 afrodidact

I’ve implemented a fix for this in the pull request here.

afrodidact avatar Oct 15 '23 11:10 afrodidact