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

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

Open EthanGao-oss opened this issue 1 year ago • 2 comments

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

EthanGao-oss avatar Oct 12 '23 10:10 EthanGao-oss

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

malmon-circle avatar Oct 16 '23 18:10 malmon-circle

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

atammy-narmi avatar Oct 17 '23 16:10 atammy-narmi