forked from mondoohq/terraform-provider-mondoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthias Theuermann <[email protected]>
- Loading branch information
1 parent
8379f89
commit d8698b5
Showing
4 changed files
with
76 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_exception Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Set custom exceptions fot a Scope. | ||
--- | ||
|
||
# mondoo_exception (Resource) | ||
|
||
Set custom exceptions fot a Scope. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "spaceId" { | ||
type = string | ||
} | ||
provider "mondoo" { | ||
region = "eu" | ||
space = var.spaceId | ||
} | ||
data "mondoo_assets" "assets_data" { | ||
space_id = var.spaceId | ||
} | ||
locals { | ||
ssl_asset = [for asset in data.mondoo_assets.assets_data.assets : asset if startswith(asset.name, "https")] | ||
assetId = one(local.ssl_asset).id | ||
} | ||
resource "mondoo_exception" "exception" { | ||
scope_mrn = "//assets.api.mondoo.app/spaces/${var.spaceId}/assets/${local.assetId}" | ||
valid_until = "2024-12-11" | ||
justification = "testing" | ||
action = "SNOOZE" | ||
check_mrns = ["//policy.api.mondoo.app/queries/mondoo-tls-security-mitigate-beast"] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `action` (String) The action to perform. Default is `SNOOZE`. Other options are `ENABLE`, `DISABLE`, `OUT_OF_SCOPE`. | ||
- `check_mrns` (List of String) List of check MRNs to set exceptions for. | ||
- `justification` (String) Description why the exception is required. | ||
- `scope_mrn` (String) The MRN of the scope (either asset mrn or space mrn). | ||
- `valid_until` (String) The timestamp until the exception is valid. | ||
- `vulnerability_mrns` (List of String) List of vulnerability MRNs to set exceptions for. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters