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

SCC Control Library not maintaining state during an update. #5637

Open
tyao117 opened this issue Sep 11, 2024 · 1 comment
Open

SCC Control Library not maintaining state during an update. #5637

tyao117 opened this issue Sep 11, 2024 · 1 comment
Labels
service/SCC Issues related to SCC

Comments

@tyao117
Copy link
Contributor

tyao117 commented Sep 11, 2024

Community Note

The terraform resource ibm_scc_control_library parses out the READ function incorrectly causing the terraform state to be skewed. This is a bug on the lifecycle of a resource.

  • 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

v1.69.1

Affected Resource(s)

  • ibm_scc_control_library

Terraform Configuration Files

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

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added the service/SCC Issues related to SCC label Sep 11, 2024
@tyao117
Copy link
Contributor Author

tyao117 commented Oct 14, 2024

from the stdout of the test:
stdout:


        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          ~ update in-place

        Terraform will perform the following actions:

          # ibm_scc_control_library.scc_control_library_instance will be updated in-place
          ~ resource "ibm_scc_control_library" "scc_control_library_instance" {
                id                          = "b934a69c-5020-44c9-baa0-c3e4fcfe349e/ed8a6d92-cf51-4939-b0d0-2b773fc22d30"
                # (16 unchanged attributes hidden)

              ~ controls {
                    # (7 unchanged attributes hidden)

                  ~ control_specifications {
                        # (8 unchanged attributes hidden)

                      - assessments {
                          - assessment_description = "test 2" -> null
                          - assessment_id          = "rule-f88e215f-bb33-4bd8-bd1c-d8a065e9aa70" -> null
                          - assessment_method      = "ibm-cloud-rule" -> null
                          - assessment_type        = "automated" -> null
                          - parameter_count        = 1 -> null

                          - parameters {
                              - parameter_display_name = "Maximum length of netmask bit that is considered as wide flow" -> null
                              - parameter_name         = "netmask_bits_length" -> null
                              - parameter_type         = "numeric" -> null
                            }
                        }
                      + assessments {
                          + assessment_description = "test 2"
                          + assessment_id          = "rule-f88e215f-bb33-4bd8-bd1c-d8a065e9aa70"
                          + assessment_method      = "ibm-cloud-rule"
                          + assessment_type        = "automated"
                          + parameter_count        = (known after apply)
                        }

                        # (1 unchanged block hidden)
                    }

                    # (1 unchanged block hidden)
                }
            }

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

No branches or pull requests

1 participant