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

CSE match lists shows constant change for custom column as target_column #583

Open
eambrosyupgrade opened this issue Oct 2, 2023 · 6 comments
Labels

Comments

@eambrosyupgrade
Copy link

Terraform Version

% terraform --version
Terraform v1.5.6
on darwin_arm64
+ provider registry.terraform.io/sumologic/sumologic v2.27.0

Affected Resource(s)

sumologic_cse_match_list

Terraform Configuration Files

resource "sumologic_cse_match_list" "matchlist" {
  name          = "my_list"
  description   = "Testing Custom Column"
  target_column = "Source Username"
}

Once I run an initial apply, this resource is constantly shown to be changing because of the target_column changing from a numeric value to a the string in my resource.

Debug Output


Terraform will perform the following actions:

  # sumologic_cse_match_list.matchlist will be updated in-place
  ~ resource "sumologic_cse_match_list" "matchlist" {
        id              = "111"
        name            = "my_list"
      ~ target_column   = "3" -> "Source Username"
        # (6 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Expected Behavior

I should be able to add use custom columns in the same way I use prebuilt columns, by calling their Name rather than ID.

Actual Behavior

Plans show drift and have encountered applies failing bc of too many "changes".

Steps to Reproduce

  • Create a match list with a custom column.
  • Run a plan
@dlinsumo
Copy link
Collaborator

dlinsumo commented Oct 3, 2023

Internal tracking Jira SUMO-229751

@pmontiel-sumo
Copy link
Collaborator

what orgId is this?

@eambrosyupgrade
Copy link
Author

@pmontiel-sumo 0000000000470976

@mvbrock
Copy link

mvbrock commented Oct 30, 2023

@eambrosyupgrade Is there any chance that a match_list with same name was previously created via UI/API?

@eambrosyupgrade
Copy link
Author

@mvbrock I just tested this on (almost) certainly new name (brand_new_list_list_name) and am observing the same behavior. Where all plans after an apply show target column reporting back as a string numeric id, and so show change to its string name.

@mvbrock
Copy link

mvbrock commented Oct 30, 2023

@eambrosyupgrade ok great, that's helpful info. I'm digging into this behavior now.

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

No branches or pull requests

4 participants