terraform-provider-opensearch
terraform-provider-opensearch copied to clipboard
[BUG] opensearch_channel_configuration config_id field change detected in TF plans
What is the bug?
Persistent Terraform plan change detected with field config_id
How can one reproduce the bug?
- 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
}
- Plan and apply
- Then trigger a new plan
- 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
Do you have any additional context?
Add any other context about the problem.
[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 yes Im on the latest version.
Hi @prudhvigodithi, can you assign this issue to me?
Thanks assigned to your @afrodidact.
Thanks!
I’ve implemented a fix for this in the pull request here.