Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibm_logs_view resource is always refreshed #5655

Open
andreainnocenti opened this issue Sep 18, 2024 · 1 comment
Open

ibm_logs_view resource is always refreshed #5655

andreainnocenti opened this issue Sep 18, 2024 · 1 comment

Comments

@andreainnocenti
Copy link

andreainnocenti commented Sep 18, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

  • ibm_logs_view

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_logs_view" "foo" {
  instance_id = var.cloud_logs_instance_guid
  region      = var.cloud_logs_instance_location
  name        = "foo"
  search_query {
    query = "bar"
  }
  time_selection {
    quick_selection {
      caption = "Last 24 hours"
      seconds = 86400
    }
  }

  folder_id = ibm_logs_view_folder.folder.view_folder_id
}

Debug Output

Panic Output

Expected Behavior

Do not modify resources every time

Actual Behavior

Screenshot 2024-09-18 at 16 29 55

As you can see in the screen, quick_selection is always converted to custom_selection using the current time.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@andreainnocenti
Copy link
Author

As workaround, customer can use this feature https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle#ignore_changes

  lifecycle {
    ignore_changes = [
      time_selection,
    ]
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant