site24x7 / terraform-provider-site24x7

Terraform provider for Site24x7
MIT License
23 stars 36 forks source link

[site24x7_amazon_monitor] user_group_ids vs user_group_names #306

Open dhoppe opened 1 month ago

dhoppe commented 1 month ago

The Site24x7 resource site24x7_amazon_monitor allows you to define a user group based on the ID or name.

Suppose I define a user group based on the name, because nobody can remember an ID. When terraform apply is executed for the first time, everything works fine, but when I execute terraform apply for the second time, Terraform tries to delete the ID.

Of course this does not work and I had to add a lifecycle to ignore changes for the user_group_ids attribute. If this behavior is intentional, it should be documented in some way.