IBM-Cloud / terraform-provider-ibm

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

SCC collector outputs should include registration key and URL to download install scripts #3795

Open mrgadgil opened 2 years ago

mrgadgil commented 2 years ago

Community Note

Description

SCC collector install needs the registration key and manifest to install the collector. SCC terraform resource should output the collector registration key as output when the collector is created. SCC collector resource should also provide a path/way to download the manifest/script to install the collector.

Since the collector registration key expires, collector can provide a data source to retrieve the registration key.

New or Affected Resource(s)

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.
resource "ibm_scc_posture_collector" "collectors" {
  description  = "Collector to use for fetching information"
  is_public    = true
  is_ubi_image = false
  managed_by   = var.collector_management
  name         = "${var.prefix}-collector-collect-remediate"
  passphrase   = ""
}

References

archanaponnada commented 2 years ago

@mrgadgil : FFR : As per our discussion in call Today, this issue has to cover below points :

  1. When creating a collector it should output -> registration key and install path.
  2. Basically, it should provide all details to install a collector like how we have on UI Today.