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 scope resource should support all features supported in IBM Cloud UI #3807

Open mrgadgil opened 2 years ago

mrgadgil commented 2 years ago

Community Note

Description

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.

Available attributes:

resource "ibm_scc_posture_scope" "scopes" {
  credential_id = "5"
  credential_type = "on_premise"
  description = "IBMSchema"
  interval = 10
  is_discovery_scheduled = true
  name = "IBMSchema-new-048-test"
}

Creating a scope in the IBM Cloud UI also supports scheduling a scan by providing scan type, profile and schedule.

Terraform resource should also be extended to schedule scan as part of creating the scope.

Attaching screenshot of how the form looks in UI

image

References

evanrappe commented 2 years ago

Can someone confirm if this functionality (particularly specifying profiles and scan type/schedule) is indeed missing currently or if we're overlooking something? Is there a plan to enhance it?

archanaponnada commented 2 years ago

hi @evanrappe : This is missing currently. We have to plan in future.

archanaponnada commented 2 years ago

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

  1. We should have an API Create Validation API which should be able to schedule scans. ETA : Will discuss with Team internally and let you know soon.