opensearch-project / terraform-provider-opensearch

https://registry.terraform.io/providers/opensearch-project/opensearch
Apache License 2.0
74 stars 57 forks source link

opensearch_monitor reports changes in query_level_trigger.id and query_level_trigger.actions.*.id after creation #100

Open EthanGao-oss opened 11 months ago

EthanGao-oss commented 11 months ago

What is the bug?

opensearch_monitor reports changes in query_level_trigger.id and query_level_trigger.actions.*.id after creation

How can one reproduce the bug?

create resource opensearch_monitor with triggers and actions definition as below; "terraform apply" to create the resource; "terraform plan" will show a change ... triggers = [ { query_level_trigger = { actions = [ { ... } ] } } ] ...

What is the expected behavior?

no changes should be reported after opensearch_monitor creation.

What is your host/environment?

MacOS Monterey, 12.2.1

Do you have any screenshots?

image

malmon-circle commented 11 months ago

+1 I am seeing similar behavior using version 2.0.0 of the provider with Opensearch 2.9 cluster

atammy-narmi commented 11 months ago

There's a PR to fix this - https://github.com/opensearch-project/terraform-provider-opensearch/pull/50