IBM-Cloud / terraform-provider-ibm

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

`ibm_scc_posture_credential` documentation example syntax error #3688

Open srmamit opened 2 years ago

srmamit commented 2 years ago

Community Note

New or Affected Resource(s) or Datasource(s)

Description

Example provided in the documentation has syntax error for display_fields and group Following is in the documentation:

image

References

archanaponnada commented 2 years ago

This issue is resolved. Corrected the documentation with correct syntax.

archanaponnada commented 2 years ago

@srmamit : could you please check and close.

srmamit commented 2 years ago

the group field should also be a map, we have following configuration in our setup:

resource "ibm_scc_posture_credential" "scc_credentials" {
  description = "Credential used by SCC collector for connecting to the resources."
  display_fields {
    ibm_api_key = var.ibmcloud_api_key
  }
  enabled = true
  group {
    id         = "0"
    passphrase = ""
  }
  name    = "${var.prefix}-credentials"
  purpose = var.scc_credential_purpose
  type    = local.scc_credential_type
}
srmamit commented 2 years ago

I think the example provided in documentation still requires small change.