IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
336 stars 645 forks source link

profile_description change leads to provider panic for ibm_scc_profile.scc_profile_instance #5398

Open nicolascomete opened 1 month ago

nicolascomete commented 1 month ago

Summary When updating a custom profile resource (ibm_scc_profile.scc_profile_instance), changing the profile_description leads to a provider panic.

Detailed description Profile has been created using a Terraform template. Updating the profile_description value from within the template leads to a provider crash. The profile is not updated.

Terraform provider version used v1.65.1

Examples of failing template

resource "ibm_scc_profile" "scc_profile_instance" {
  instance_id = "..."
  # Old value
  # profile_description = "Test TF"
  # New value
  profile_description = "Test TF v2"
  profile_name = "test_tf"
  profile_type = "custom"
  controls {
    control_library_id = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
    control_id = "69d09c01-c14d-4bbb-821e-52fed6cd4bf0"
  }
  controls {
    control_library_id = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
    control_id = "671718f9-16ca-49ff-84d0-0de9a09d46fc"
  }
  controls {
    control_library_id = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
    control_id = "5d004f98-2a4d-4899-a895-016c617eb08c"
  }
}

Leads to:

scc-provider  % tf apply -auto-approve
2024-05-30T13:43:31.101+0200 [INFO]  Terraform version: 1.3.7
2024-05-30T13:43:31.101+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2024-05-30T13:43:31.101+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.15.0
2024-05-30T13:43:31.101+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2024-05-30T13:43:31.101+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2024-05-30T13:43:31.101+0200 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2024-05-30T13:43:31.101+0200 [INFO]  Go runtime version: go1.19.4
2024-05-30T13:43:31.101+0200 [INFO]  CLI args: []string{"terraform", "apply", "-auto-approve"}
2024-05-30T13:43:31.101+0200 [DEBUG] Attempting to open CLI config file: /Users/comete/.terraformrc
2024-05-30T13:43:31.101+0200 [INFO]  Loading CLI configuration from /Users/comete/.terraformrc
2024-05-30T13:43:31.101+0200 [DEBUG] checking for credentials in "/Users/comete/.terraform.d/plugins"
2024-05-30T13:43:31.101+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-05-30T13:43:31.101+0200 [DEBUG] will search for provider plugins in /Users/comete/.terraform.d/plugins
2024-05-30T13:43:31.102+0200 [WARN]  local provider path "/Users/comete/.terraform.d/plugins/cxl/tf-test-provider/.DS_Store" contains invalid type ".DS_Store"; ignoring
2024-05-30T13:43:31.102+0200 [WARN]  local provider path "/Users/comete/.terraform.d/plugins/cxl/tf-test-provider/0.0.1" contains invalid type "0.0.1"; ignoring
2024-05-30T13:43:31.102+0200 [WARN]  local provider path "/Users/comete/.terraform.d/plugins/cxl/tf-test-provider/0.0.1/.DS_Store" contains invalid type "0.0.1"; ignoring
2024-05-30T13:43:31.102+0200 [WARN]  local provider path "/Users/comete/.terraform.d/plugins/cxl/tf-test-provider/0.0.1/darwin_arm64" contains invalid type "0.0.1"; ignoring
2024-05-30T13:43:31.102+0200 [WARN]  local provider path "/Users/comete/.terraform.d/plugins/cxl/tf-test-provider/0.0.1/darwin_arm64/tf-test-provider" contains invalid type "0.0.1"; ignoring
2024-05-30T13:43:31.102+0200 [DEBUG] ignoring non-existing provider search directory /Users/comete/Library/Application Support/io.terraform/plugins
2024-05-30T13:43:31.102+0200 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2024-05-30T13:43:31.102+0200 [INFO]  CLI command args: []string{"apply", "-auto-approve"}
2024-05-30T13:43:31.103+0200 [DEBUG] New state was assigned lineage "65ab70cb-4202-57eb-3b61-46f4ddd8624f"
2024-05-30T13:43:31.175+0200 [DEBUG] checking for provisioner in "."
2024-05-30T13:43:31.176+0200 [DEBUG] checking for provisioner in "/opt/homebrew/bin"
2024-05-30T13:43:31.176+0200 [DEBUG] checking for provisioner in "/Users/comete/.terraform.d/plugins"
2024-05-30T13:43:31.177+0200 [INFO]  backend/local: starting Apply operation
2024-05-30T13:43:31.177+0200 [DEBUG] created provider logger: level=debug
2024-05-30T13:43:31.177+0200 [INFO]  provider: configuring client automatic mTLS
2024-05-30T13:43:31.186+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 args=[.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1]
2024-05-30T13:43:31.191+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20911
2024-05-30T13:43:31.191+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1
2024-05-30T13:43:31.224+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: 2024-05-30 13:43:31.224316 I | IBM Cloud Provider version 1.65.1
2024-05-30T13:43:31.225+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: configuring server automatic mTLS: timestamp=2024-05-30T13:43:31.225+0200
2024-05-30T13:43:31.239+0200 [DEBUG] provider: using plugin: version=5
2024-05-30T13:43:31.240+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: plugin address: address=/var/folders/yt/_rtssplx6bx0h9d5ww8j_jvh0000gn/T/plugin1323046403 network=unix timestamp=2024-05-30T13:43:31.239+0200
2024-05-30T13:43:31.326+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-05-30T13:43:31.327+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20911
2024-05-30T13:43:31.327+0200 [DEBUG] provider: plugin exited
2024-05-30T13:43:31.327+0200 [DEBUG] Building and walking validate graph
2024-05-30T13:43:31.327+0200 [DEBUG] ProviderTransformer: "ibm_scc_profile.scc_profile_instance" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/ibm-cloud/ibm"]
2024-05-30T13:43:31.327+0200 [DEBUG] ReferenceTransformer: "ibm_scc_profile.scc_profile_instance" references: []
2024-05-30T13:43:31.327+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/ibm-cloud/ibm\"]" references: []
2024-05-30T13:43:31.327+0200 [DEBUG] Starting graph walk: walkValidate
2024-05-30T13:43:31.328+0200 [DEBUG] created provider logger: level=debug
2024-05-30T13:43:31.328+0200 [INFO]  provider: configuring client automatic mTLS
2024-05-30T13:43:31.331+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 args=[.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1]
2024-05-30T13:43:31.335+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20912
2024-05-30T13:43:31.335+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1
2024-05-30T13:43:31.366+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: 2024-05-30 13:43:31.366014 I | IBM Cloud Provider version 1.65.1
2024-05-30T13:43:31.366+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: configuring server automatic mTLS: timestamp=2024-05-30T13:43:31.366+0200
2024-05-30T13:43:31.381+0200 [DEBUG] provider: using plugin: version=5
2024-05-30T13:43:31.381+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: plugin address: address=/var/folders/yt/_rtssplx6bx0h9d5ww8j_jvh0000gn/T/plugin613135920 network=unix timestamp=2024-05-30T13:43:31.381+0200
2024-05-30T13:43:31.477+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-05-30T13:43:31.479+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20912
2024-05-30T13:43:31.479+0200 [DEBUG] provider: plugin exited
2024-05-30T13:43:31.479+0200 [INFO]  backend/local: apply calling Plan
2024-05-30T13:43:31.479+0200 [DEBUG] Building and walking plan graph for NormalMode
2024-05-30T13:43:31.479+0200 [DEBUG] ProviderTransformer: "ibm_scc_profile.scc_profile_instance (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/ibm-cloud/ibm"]
2024-05-30T13:43:31.479+0200 [DEBUG] ReferenceTransformer: "ibm_scc_profile.scc_profile_instance (expand)" references: []
2024-05-30T13:43:31.479+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/ibm-cloud/ibm\"]" references: []
2024-05-30T13:43:31.479+0200 [DEBUG] Starting graph walk: walkPlan
2024-05-30T13:43:31.479+0200 [DEBUG] created provider logger: level=debug
2024-05-30T13:43:31.479+0200 [INFO]  provider: configuring client automatic mTLS
2024-05-30T13:43:31.483+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 args=[.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1]
2024-05-30T13:43:31.486+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20913
2024-05-30T13:43:31.486+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1
2024-05-30T13:43:31.517+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: 2024-05-30 13:43:31.517291 I | IBM Cloud Provider version 1.65.1
2024-05-30T13:43:31.517+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: configuring server automatic mTLS: timestamp=2024-05-30T13:43:31.517+0200
2024-05-30T13:43:31.533+0200 [DEBUG] provider: using plugin: version=5
2024-05-30T13:43:31.533+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: plugin address: address=/var/folders/yt/_rtssplx6bx0h9d5ww8j_jvh0000gn/T/plugin3624065518 network=unix timestamp=2024-05-30T13:43:31.533+0200
2024-05-30T13:43:31.627+0200 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/ibm-cloud/ibm\"]" changed the config value, but that value is unused
2024-05-30T13:43:31.627+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: Configuring IBM Cloud Session with API key: timestamp=2024-05-30T13:43:31.627+0200
2024-05-30T13:43:31.627+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: Configured Region: ca-tor: timestamp=2024-05-30T13:43:31.627+0200
2024-05-30T13:43:32.030+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: Configuring SoftLayer Session with token from IBM Cloud Session: timestamp=2024-05-30T13:43:32.029+0200
2024-05-30T13:43:32.037+0200 [DEBUG] ReferenceTransformer: "ibm_scc_profile.scc_profile_instance" references: []
ibm_scc_profile.scc_profile_instance: Refreshing state... [id=.../375c3c63-15f0-4ef1-a786-2fc8fd8bc0ba]
2024-05-30T13:43:32.042+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: Starting resourceIbmSccProfileRead: timestamp=2024-05-30T13:43:32.042+0200
2024-05-30T13:43:32.043+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: 2024/05/30 13:43:32 [Debug] Request:
POST /identity/token HTTP/1.1
Host: iam.cloud.ibm.com
User-Agent: ibm-go-sdk-core/iam-authenticator-5.17.0 (arch=arm64; os=darwin; go.version=go1.19.13)
Content-Length: 135
Accept: application/json
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

apikey=[redacted]&grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&response_type=cloud_iam: timestamp=2024-05-30T13:43:32.043+0200
2024-05-30T13:43:32.043+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: 2024/05/30 13:43:32 [Debug] Invoking IAM 'get token' operation: https://iam.cloud.ibm.com/identity/token: timestamp=2024-05-30T13:43:32.043+0200
2024-05-30T13:43:32.442+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: 2024/05/30 13:43:32 [Debug] Returned from IAM 'get token' operation, received status code 200: timestamp=2024-05-30T13:43:32.442+0200
2024-05-30T13:43:32.444+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: 2024/05/30 13:43:32 [Debug] Response:
HTTP/1.1 200 OK
Akamai-Grn: 0.61b31402.1717069412.107cf80d
Cache-Control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Language: en-US
Content-Type: application/json
Date: Thu, 30 May 2024 11:43:32 GMT
Expires: 0
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transaction-Id: YmdsOWQ-614322da7fd04bfab6aaef0d434bf629
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Correlation-Id: YmdsOWQ-614322da7fd04bfab6aaef0d434bf629
X-Proxy-Upstream-Service-Time: 141
X-Request-Id: 98efa9b6-c772-4781-a1e8-1a01e1d18a52

{"access_token":"[redacted]","refresh_token":"[redacted]","ims_user_id":10037094,"token_type":"Bearer","expires_in":3600,"expiration":1717073009,"scope":"ibm openid"}: timestamp=2024-05-30T13:43:32.444+0200
2024-05-30T13:43:32.444+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: 2024/05/30 13:43:32 [Debug] Request:
GET /instances/.../v3/profiles/375c3c63-15f0-4ef1-a786-2fc8fd8bc0ba HTTP/1.1
Host: ca-tor.compliance.cloud.ibm.com
User-Agent: scc-go-sdk/5.1.5 (lang=go; arch=arm64; os=darwin; go.version=go1.19.13)
Accept: application/json
Authorization: [redacted]
X-Original-User-Agent: terraform-provider-ibm/1.65.1
Accept-Encoding: gzip
: timestamp=2024-05-30T13:43:32.444+0200
2024-05-30T13:43:32.445+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: 2024/05/30 13:43:32 [DEBUG] GET https://ca-tor.compliance.cloud.ibm.com/instances/.../v3/profiles/375c3c63-15f0-4ef1-a786-2fc8fd8bc0ba: timestamp=2024-05-30T13:43:32.444+0200
2024-05-30T13:43:33.470+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: 2024/05/30 13:43:33 [Debug] Response:
HTTP/2.0 200 OK
Cache-Control: no-store
Cf-Cache-Status: DYNAMIC
Cf-Ray: 88be77953f7fa03d-FRA
Content-Type: application/json; charset=utf-8
Date: Thu, 30 May 2024 11:43:33 GMT
Server: cloudflare
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transaction-Id: a1897e8e-2778-40c8-beed-c0dd36b42d1e
X-Content-Type-Options: nosniff
X-Correlation-Id: f373db5f-19a1-4713-a17f-f1a52e733a49
X-Envoy-Upstream-Service-Time: 498
X-Request-Id: 311500ae-b748-937c-aeab-865e350d053f

{"id":"375c3c63-15f0-4ef1-a786-2fc8fd8bc0ba","profile_name":"test_tf","profile_description":"Test TF","profile_type":"custom","profile_version":"0.0.0","version_group_label":"a95de360-6f8c-445a-a401-797e86d01ae0","instance_id":"...","latest":true,"hierarchy_enabled":true,"created_by":"IBMid-0600029752","created_on":"2024-05-30T08:55:47Z","updated_by":"IBMid-0600029752","updated_on":"2024-05-30T08:55:47Z","controls_count":1,"control_parents_count":2,"attachments_count":0,"controls":[{"control_library_id":"4b70781c-c9eb-42fb-a78e-920d4ae48305","control_id":"69d09c01-c14d-4bbb-821e-52fed6cd4bf0","control_library_version":"1.6.0","control_name":"AC-1(a)","control_description":"The organization: Develops, documents, and disseminates to [organization-defined personnel or roles]: (1) An access control policy that addresses purpose, scope, roles, responsibilities, management commitment, coordination among organizational entities, and compliance; and (2) Procedures to facilitate the implementation of the access control policy and associated access controls; and","control_category":"Access Control","control_parent":"AC-1","control_path":"AC/AC-1/AC-1(a)","control_requirement":true,"control_docs":{"control_docs_id":"ac-1","control_docs_type":"ibm-cloud"},"control_specifications_count":0,"control_specifications":[]},{"control_library_id":"4b70781c-c9eb-42fb-a78e-920d4ae48305","control_id":"671718f9-16ca-49ff-84d0-0de9a09d46fc","control_library_version":"1.6.0","control_name":"AC-1","control_description":"Access Control Policy and Procedures","control_category":"Access Control","control_parent":"AC","control_path":"AC/AC-1","control_requirement":false,"control_docs":{"control_docs_id":"ac-1","control_docs_type":"ibm-cloud"},"control_specifications_count":0,"control_specifications":[]},{"control_library_id":"4b70781c-c9eb-42fb-a78e-920d4ae48305","control_id":"5d004f98-2a4d-4899-a895-016c617eb08c","control_library_version":"1.6.0","control_name":"AC","control_description":"Access Control","control_category":"Access Control","control_parent":"","control_path":"AC","control_requirement":false,"control_docs":{"control_docs_id":"ac-1","control_docs_type":"ibm-cloud"},"control_specifications_count":0,"control_specifications":[]}],"default_parameters":[]}: timestamp=2024-05-30T13:43:33.470+0200
2024-05-30T13:43:33.481+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-05-30T13:43:33.484+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20913
2024-05-30T13:43:33.484+0200 [DEBUG] provider: plugin exited
2024-05-30T13:43:33.484+0200 [DEBUG] building apply graph to check for errors
2024-05-30T13:43:33.484+0200 [DEBUG] ProviderTransformer: "ibm_scc_profile.scc_profile_instance (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/ibm-cloud/ibm"]
2024-05-30T13:43:33.484+0200 [DEBUG] ProviderTransformer: "ibm_scc_profile.scc_profile_instance" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/ibm-cloud/ibm"]
2024-05-30T13:43:33.484+0200 [DEBUG] ReferenceTransformer: "ibm_scc_profile.scc_profile_instance (expand)" references: []
2024-05-30T13:43:33.484+0200 [DEBUG] ReferenceTransformer: "ibm_scc_profile.scc_profile_instance" references: []
2024-05-30T13:43:33.484+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/ibm-cloud/ibm\"]" references: []

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_profile.scc_profile_instance will be updated in-place
  ~ resource "ibm_scc_profile" "scc_profile_instance" {
        id                    = ".../375c3c63-15f0-4ef1-a786-2fc8fd8bc0ba"
      ~ profile_description   = "Test TF" -> "Test TF v2"
        # (15 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
2024-05-30T13:43:33.487+0200 [INFO]  backend/local: apply calling Apply
2024-05-30T13:43:33.487+0200 [DEBUG] Building and walking apply graph for NormalMode plan
2024-05-30T13:43:33.487+0200 [DEBUG] ProviderTransformer: "ibm_scc_profile.scc_profile_instance (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/ibm-cloud/ibm"]
2024-05-30T13:43:33.487+0200 [DEBUG] ProviderTransformer: "ibm_scc_profile.scc_profile_instance" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/ibm-cloud/ibm"]
2024-05-30T13:43:33.487+0200 [DEBUG] ReferenceTransformer: "ibm_scc_profile.scc_profile_instance (expand)" references: []
2024-05-30T13:43:33.487+0200 [DEBUG] ReferenceTransformer: "ibm_scc_profile.scc_profile_instance" references: []
2024-05-30T13:43:33.487+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/ibm-cloud/ibm\"]" references: []
2024-05-30T13:43:33.487+0200 [DEBUG] Starting graph walk: walkApply
2024-05-30T13:43:33.487+0200 [DEBUG] created provider logger: level=debug
2024-05-30T13:43:33.488+0200 [INFO]  provider: configuring client automatic mTLS
2024-05-30T13:43:33.493+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 args=[.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1]
2024-05-30T13:43:33.499+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20914
2024-05-30T13:43:33.499+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1
2024-05-30T13:43:33.539+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: 2024-05-30 13:43:33.538956 I | IBM Cloud Provider version 1.65.1
2024-05-30T13:43:33.539+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: configuring server automatic mTLS: timestamp=2024-05-30T13:43:33.539+0200
2024-05-30T13:43:33.556+0200 [DEBUG] provider: using plugin: version=5
2024-05-30T13:43:33.556+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: plugin address: address=/var/folders/yt/_rtssplx6bx0h9d5ww8j_jvh0000gn/T/plugin2645345582 network=unix timestamp=2024-05-30T13:43:33.555+0200
2024-05-30T13:43:33.649+0200 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/ibm-cloud/ibm\"]" changed the config value, but that value is unused
2024-05-30T13:43:33.650+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: Configuring IBM Cloud Session with API key: timestamp=2024-05-30T13:43:33.650+0200
2024-05-30T13:43:33.650+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: Configured Region: ca-tor: timestamp=2024-05-30T13:43:33.650+0200
2024-05-30T13:43:34.052+0200 [INFO]  provider.terraform-provider-ibm_v1.65.1: Configuring SoftLayer Session with token from IBM Cloud Session: timestamp=2024-05-30T13:43:34.052+0200
ibm_scc_profile.scc_profile_instance: Modifying... [id=.../375c3c63-15f0-4ef1-a786-2fc8fd8bc0ba]
2024-05-30T13:43:34.067+0200 [INFO]  Starting apply for ibm_scc_profile.scc_profile_instance
2024-05-30T13:43:34.067+0200 [DEBUG] ibm_scc_profile.scc_profile_instance: applying the planned Update change
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: panic: interface conversion: interface {} is nil, not string
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: goroutine 110 [running]:
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc.resourceIbmSccProfileMapToReplaceProfileOptions(0x1062d3360?)
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc/resource_ibm_scc_profile.go:684 +0x898
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc.resourceIbmSccProfileUpdate({0x106a89078, 0x14002680ae0}, 0x14000872d80, {0x106a2f560?, 0x14000970000})
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc/resource_ibm_scc_profile.go:573 +0x5dc
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider.wrapFunction.func1({0x106a89078?, 0x14002680ae0?}, 0x0?, {0x106a2f560?, 0x14000970000?})
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider/provider.go:1533 +0x34
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x1400175c1c0, {0x106a890b0, 0x1400085abd0}, 0xd?, {0x106a2f560, 0x14000970000})
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/resource.go:812 +0xe8
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x1400175c1c0, {0x106a890b0, 0x1400085abd0}, 0x1400269a9c0, 0x14000872c00, {0x106a2f560, 0x14000970000})
2024-05-30T13:43:34.073+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/resource.go:919 +0x6a0
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x14000dae708, {0x106a890b0?, 0x1400085aab0?}, 0x14001b1a3c0)
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/grpc_provider.go:1060 +0xb70
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x14000bca0a0, {0x106a890b0?, 0x1400085a0c0?}, 0x14002688070)
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/tf5server/server.go:859 +0x3b8
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1068a8800?, 0x14000bca0a0}, {0x106a890b0, 0x1400085a0c0}, 0x14002688000, 0x0)
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:467 +0x170
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: google.golang.org/grpc.(*Server).processUnaryRPC(0x14000c9c1e0, {0x106a93e20, 0x14001482680}, 0x14001fbf7a0, 0x14001711620, 0x108a7fd98, 0x0)
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   google.golang.org/grpc@v1.57.1/server.go:1358 +0xc88
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: google.golang.org/grpc.(*Server).handleStream(0x14000c9c1e0, {0x106a93e20, 0x14001482680}, 0x14001fbf7a0, 0x0)
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   google.golang.org/grpc@v1.57.1/server.go:1735 +0x82c
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: google.golang.org/grpc.(*Server).serveStreams.func1.1()
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   google.golang.org/grpc@v1.57.1/server.go:970 +0xb4
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1: created by google.golang.org/grpc.(*Server).serveStreams.func1
2024-05-30T13:43:34.074+0200 [DEBUG] provider.terraform-provider-ibm_v1.65.1:   google.golang.org/grpc@v1.57.1/server.go:981 +0x174
2024-05-30T13:43:34.078+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-05-30T13:43:34.078+0200 [ERROR] plugin.(*GRPCProvider).ApplyResourceChange: error="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-05-30T13:43:34.078+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.65.1/darwin_arm64/terraform-provider-ibm_v1.65.1 pid=20914 error="exit status 2"
2024-05-30T13:43:34.089+0200 [ERROR] vertex "ibm_scc_profile.scc_profile_instance" error: Plugin did not respond
╷
│ Error: Plugin did not respond
│
│   with ibm_scc_profile.scc_profile_instance,
│   on profile.tf line 1, in resource "ibm_scc_profile" "scc_profile_instance":
│    1: resource "ibm_scc_profile" "scc_profile_instance" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin
│ logs may contain more details.
╵

Stack trace from the terraform-provider-ibm_v1.65.1 plugin:

panic: interface conversion: interface {} is nil, not string

goroutine 110 [running]:
github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc.resourceIbmSccProfileMapToReplaceProfileOptions(0x1062d3360?)
    github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc/resource_ibm_scc_profile.go:684 +0x898
github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc.resourceIbmSccProfileUpdate({0x106a89078, 0x14002680ae0}, 0x14000872d80, {0x106a2f560?, 0x14000970000})
    github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc/resource_ibm_scc_profile.go:573 +0x5dc
github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider.wrapFunction.func1({0x106a89078?, 0x14002680ae0?}, 0x0?, {0x106a2f560?, 0x14000970000?})
    github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider/provider.go:1533 +0x34
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x1400175c1c0, {0x106a890b0, 0x1400085abd0}, 0xd?, {0x106a2f560, 0x14000970000})
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/resource.go:812 +0xe8
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x1400175c1c0, {0x106a890b0, 0x1400085abd0}, 0x1400269a9c0, 0x14000872c00, {0x106a2f560, 0x14000970000})
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/resource.go:919 +0x6a0
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x14000dae708, {0x106a890b0?, 0x1400085aab0?}, 0x14001b1a3c0)
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/grpc_provider.go:1060 +0xb70
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x14000bca0a0, {0x106a890b0?, 0x1400085a0c0?}, 0x14002688070)
    github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/tf5server/server.go:859 +0x3b8
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1068a8800?, 0x14000bca0a0}, {0x106a890b0, 0x1400085a0c0}, 0x14002688000, 0x0)
    github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:467 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0x14000c9c1e0, {0x106a93e20, 0x14001482680}, 0x14001fbf7a0, 0x14001711620, 0x108a7fd98, 0x0)
    google.golang.org/grpc@v1.57.1/server.go:1358 +0xc88
google.golang.org/grpc.(*Server).handleStream(0x14000c9c1e0, {0x106a93e20, 0x14001482680}, 0x14001fbf7a0, 0x0)
    google.golang.org/grpc@v1.57.1/server.go:1735 +0x82c
google.golang.org/grpc.(*Server).serveStreams.func1.1()
    google.golang.org/grpc@v1.57.1/server.go:970 +0xb4
created by google.golang.org/grpc.(*Server).serveStreams.func1
    google.golang.org/grpc@v1.57.1/server.go:981 +0x174

Error: The terraform-provider-ibm_v1.65.1 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

2024-05-30T13:43:34.096+0200 [DEBUG] provider: plugin exited
s
nicolascomete commented 1 month ago

@hkantare provider is being used in DMZR project

hkantare commented 1 month ago

We are following with SCC team . They are looking into (pavanmanda@in.ibm.com)

pavanm87 commented 1 month ago

Hi @nicolascomete I tested on my test environment instance with ibm-cloud provider 1.65.1

pavanmanda@Pavans-MacBook-Pro-2 terraform-checks % terraform plan

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # ibm_scc_profile.scc_profile_instance will be created
  + resource "ibm_scc_profile" "scc_profile_instance" {
      + attachments_count     = (known after apply)
      + control_parents_count = (known after apply)
      + controls_count        = (known after apply)
      + created_by            = (known after apply)
      + created_on            = (known after apply)
      + hierarchy_enabled     = (known after apply)
      + id                    = (known after apply)
      + instance_id           = "32134f77-2541-4d17-8e7c-89129fa43afc"
      + latest                = (known after apply)
      + profile_description   = "Test TF v2"
      + profile_id            = (known after apply)
      + profile_name          = "test_tf"
      + profile_type          = "custom"
      + profile_version       = (known after apply)
      + updated_by            = (known after apply)
      + updated_on            = (known after apply)
      + version_group_label   = (known after apply)

      + controls {
          + control_category             = (known after apply)
          + control_description          = (known after apply)
          + control_docs                 = (known after apply)
          + control_id                   = "69d09c01-c14d-4bbb-821e-52fed6cd4bf0"
          + control_library_id           = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
          + control_library_version      = (known after apply)
          + control_name                 = (known after apply)
          + control_parent               = (known after apply)
          + control_requirement          = (known after apply)
          + control_specifications       = (known after apply)
          + control_specifications_count = (known after apply)
        }
      + controls {
          + control_category             = (known after apply)
          + control_description          = (known after apply)
          + control_docs                 = (known after apply)
          + control_id                   = "671718f9-16ca-49ff-84d0-0de9a09d46fc"
          + control_library_id           = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
          + control_library_version      = (known after apply)
          + control_name                 = (known after apply)
          + control_parent               = (known after apply)
          + control_requirement          = (known after apply)
          + control_specifications       = (known after apply)
          + control_specifications_count = (known after apply)
        }
      + controls {
          + control_category             = (known after apply)
          + control_description          = (known after apply)
          + control_docs                 = (known after apply)
          + control_id                   = "5d004f98-2a4d-4899-a895-016c617eb08c"
          + control_library_id           = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
          + control_library_version      = (known after apply)
          + control_name                 = (known after apply)
          + control_parent               = (known after apply)
          + control_requirement          = (known after apply)
          + control_specifications       = (known after apply)
          + control_specifications_count = (known after apply)
        }
    }

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

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
pavanmanda@Pavans-MacBook-Pro-2 terraform-checks % terraform apply

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # ibm_scc_profile.scc_profile_instance will be created
  + resource "ibm_scc_profile" "scc_profile_instance" {
      + attachments_count     = (known after apply)
      + control_parents_count = (known after apply)
      + controls_count        = (known after apply)
      + created_by            = (known after apply)
      + created_on            = (known after apply)
      + hierarchy_enabled     = (known after apply)
      + id                    = (known after apply)
      + instance_id           = "32134f77-2541-4d17-8e7c-89129fa43afc"
      + latest                = (known after apply)
      + profile_description   = "Test TF v2"
      + profile_id            = (known after apply)
      + profile_name          = "test_tf"
      + profile_type          = "custom"
      + profile_version       = (known after apply)
      + updated_by            = (known after apply)
      + updated_on            = (known after apply)
      + version_group_label   = (known after apply)

      + controls {
          + control_category             = (known after apply)
          + control_description          = (known after apply)
          + control_docs                 = (known after apply)
          + control_id                   = "69d09c01-c14d-4bbb-821e-52fed6cd4bf0"
          + control_library_id           = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
          + control_library_version      = (known after apply)
          + control_name                 = (known after apply)
          + control_parent               = (known after apply)
          + control_requirement          = (known after apply)
          + control_specifications       = (known after apply)
          + control_specifications_count = (known after apply)
        }
      + controls {
          + control_category             = (known after apply)
          + control_description          = (known after apply)
          + control_docs                 = (known after apply)
          + control_id                   = "671718f9-16ca-49ff-84d0-0de9a09d46fc"
          + control_library_id           = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
          + control_library_version      = (known after apply)
          + control_name                 = (known after apply)
          + control_parent               = (known after apply)
          + control_requirement          = (known after apply)
          + control_specifications       = (known after apply)
          + control_specifications_count = (known after apply)
        }
      + controls {
          + control_category             = (known after apply)
          + control_description          = (known after apply)
          + control_docs                 = (known after apply)
          + control_id                   = "5d004f98-2a4d-4899-a895-016c617eb08c"
          + control_library_id           = "4b70781c-c9eb-42fb-a78e-920d4ae48305"
          + control_library_version      = (known after apply)
          + control_name                 = (known after apply)
          + control_parent               = (known after apply)
          + control_requirement          = (known after apply)
          + control_specifications       = (known after apply)
          + control_specifications_count = (known after apply)
        }
    }

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

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

ibm_scc_profile.scc_profile_instance: Creating...
ibm_scc_profile.scc_profile_instance: Still creating... [10s elapsed]
ibm_scc_profile.scc_profile_instance: Creation complete after 15s [id=32134f77-2541-4d17-8e7c-89129fa43afc/0aab940f-e0b1-450f-8428-2e0c70eae34b]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
pavanmanda@Pavans-MacBook-Pro-2 terraform-checks % terraform providers

Providers required by configuration:
.
└── provider[registry.terraform.io/ibm-cloud/ibm] 1.65.1

Providers required by state:

    provider[registry.terraform.io/ibm-cloud/ibm]

pavanmanda@Pavans-MacBook-Pro-2 terraform-checks % 

There is no issue with the SCC resource in the creation flow, but I was able to replicate the issue in the update flow.

pavanmanda@Pavans-MacBook-Pro-2 terraform-checks % terraform plan     
ibm_scc_profile.scc_profile_instance: Refreshing state... [id=32134f77-2541-4d17-8e7c-89129fa43afc/0aab940f-e0b1-450f-8428-2e0c70eae34b]

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_profile.scc_profile_instance will be updated in-place
  ~ resource "ibm_scc_profile" "scc_profile_instance" {
        id                    = "32134f77-2541-4d17-8e7c-89129fa43afc/0aab940f-e0b1-450f-8428-2e0c70eae34b"
      ~ profile_description   = "Test TF v2" -> "Test TF v2 update"
      ~ profile_name          = "test_tf" -> "test_tf_update"
        # (14 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

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

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
pavanmanda@Pavans-MacBook-Pro-2 terraform-checks % terraform apply
ibm_scc_profile.scc_profile_instance: Refreshing state... [id=32134f77-2541-4d17-8e7c-89129fa43afc/0aab940f-e0b1-450f-8428-2e0c70eae34b]

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_profile.scc_profile_instance will be updated in-place
  ~ resource "ibm_scc_profile" "scc_profile_instance" {
        id                    = "32134f77-2541-4d17-8e7c-89129fa43afc/0aab940f-e0b1-450f-8428-2e0c70eae34b"
      ~ profile_description   = "Test TF v2" -> "Test TF v2 update"
      ~ profile_name          = "test_tf" -> "test_tf_update"
        # (14 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

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

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

ibm_scc_profile.scc_profile_instance: Modifying... [id=32134f77-2541-4d17-8e7c-89129fa43afc/0aab940f-e0b1-450f-8428-2e0c70eae34b]
╷
│ Error: Plugin did not respond
│ 
│   with ibm_scc_profile.scc_profile_instance,
│   on main.tf line 1, in resource "ibm_scc_profile" "scc_profile_instance":
│    1: resource "ibm_scc_profile" "scc_profile_instance" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
╵

Stack trace from the terraform-provider-ibm_v1.65.1 plugin:

panic: interface conversion: interface {} is nil, not string

goroutine 48 [running]:
github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc.resourceIbmSccProfileMapToReplaceProfileOptions(0x108a5f360?)
        github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc/resource_ibm_scc_profile.go:684 +0x898
github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc.resourceIbmSccProfileUpdate({0x109215078, 0x14001878300}, 0x14001833080, {0x1091bb560?, 0x14000bb4a80})
        github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc/resource_ibm_scc_profile.go:573 +0x5dc
github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider.wrapFunction.func1({0x109215078?, 0x14001878300?}, 0x0?, {0x1091bb560?, 0x14000bb4a80?})
        github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider/provider.go:1533 +0x34
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x140017955e0, {0x1092150b0, 0x140005f9170}, 0xd?, {0x1091bb560, 0x14000bb4a80})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/resource.go:812 +0xe8
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x140017955e0, {0x1092150b0, 0x140005f9170}, 0x140005fcc30, 0x14001832f00, {0x1091bb560, 0x14000bb4a80})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/resource.go:919 +0x6a0
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x14000809fc8, {0x1092150b0?, 0x140005f9050?}, 0x140003f6eb0)
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/schema/grpc_provider.go:1060 +0xb70
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x14000b28640, {0x1092150b0?, 0x140005f8630?}, 0x140001c80e0)
        github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/tf5server/server.go:859 +0x3b8
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x109034800?, 0x14000b28640}, {0x1092150b0, 0x140005f8630}, 0x140001c8070, 0x0)
        github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:467 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0x140001de000, {0x10921fe20, 0x14000818680}, 0x14001848000, 0x1400175f6b0, 0x10b20bd98, 0x0)
        google.golang.org/grpc@v1.57.1/server.go:1358 +0xc88
google.golang.org/grpc.(*Server).handleStream(0x140001de000, {0x10921fe20, 0x14000818680}, 0x14001848000, 0x0)
        google.golang.org/grpc@v1.57.1/server.go:1735 +0x82c
google.golang.org/grpc.(*Server).serveStreams.func1.1()
        google.golang.org/grpc@v1.57.1/server.go:970 +0xb4
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/grpc@v1.57.1/server.go:981 +0x174

Error: The terraform-provider-ibm_v1.65.1 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

pavanmanda@Pavans-MacBook-Pro-2 terraform-checks % 

we will prioritize and plan this issue by bringing it to the team's attention and informing you of the timelines for resolution, based on our current priority items.