mondoohq / terraform-provider-mondoo

Terraform Mondoo provider
https://registry.terraform.io/providers/mondoohq/mondoo
Other
5 stars 1 forks source link

enable compliance framework #103

Open ehaselwanter opened 5 months ago

ehaselwanter commented 5 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

chris-rock commented 5 months ago

I propose a definition similar to our policies:

resource "mondoo_framework_assignment" "space" {
  space_id = mondoo_space.my_space.id

  frameworks = [
    "//policy.api.mondoo.app/frameworks/iso-27001-2022",
  ]

  state = "enabled"

  # default is false, allows only setting specific policies
  partial_update = false
}

Right now I would avoid adding an attribute activate_policies = true since this would allow conflicts between the new policy setting https://github.com/mondoohq/terraform-provider-mondoo/issues/104 and this resource.

chris-rock commented 5 months ago

I added sample requests to our API examples https://github.com/mondoohq/samples/pull/63/files

Pauti commented 4 months ago

We implemented the issue in the following PR: https://github.com/mondoohq/terraform-provider-mondoo/pull/108