-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Resources: Control, Cloud Config Rule, and Host Config Rule to Se…
…curity Sub-Category Associations (#25) Add a new set of resources to manage security sub-category associations to cloud configuration rules, host configuratio rules, and controls: - wiz_host_config_rule_associations - wiz_cloud_config_rule_associations - wiz_control_associations
- Loading branch information
Showing
19 changed files
with
11,747 additions
and
3,490 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
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,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "wiz_cloud_config_rule_associations Resource - terraform-provider-wiz" | ||
subcategory: "" | ||
description: |- | ||
Manage associations between cloud configuration rules and security sub-categories. Associations defined outside this resouce will remain untouched through the lifecycle of this resource. Wiz managed cloud configuration rules cannot be associated to Wiz managed security sub-categories. This resource does not support imports; it can, however, overlay existing resources to bring them under management. | ||
--- | ||
|
||
# wiz_cloud_config_rule_associations (Resource) | ||
|
||
Manage associations between cloud configuration rules and security sub-categories. Associations defined outside this resouce will remain untouched through the lifecycle of this resource. Wiz managed cloud configuration rules cannot be associated to Wiz managed security sub-categories. This resource does not support imports; it can, however, overlay existing resources to bring them under management. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "wiz_cloud_config_rule_associations" "test" { | ||
security_sub_category_ids = [ | ||
"2e5bc0d5-835b-4b4c-99cf-b1c6ace90a52", | ||
"708ec4a1-1a5c-4cb3-9c52-511229c5bb35", | ||
] | ||
cloud_config_rule_ids = [ | ||
"301e5fd0-6a1a-42a7-99f5-3b0436d55a7f", | ||
"a5fbd955-ed78-445a-827a-06d6cbe5aab2", | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cloud_config_rule_ids` (List of String) List of cloud configuration rule IDs. | ||
- `security_sub_category_ids` (List of String) List of security sub-category IDs. | ||
|
||
### Optional | ||
|
||
- `details` (String) Details of the association. This information is not used to manage resources but can serve as notes or documentation for the associations. | ||
- Defaults to `undefined`. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Internal identifier for the association. | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "wiz_control_associations Resource - terraform-provider-wiz" | ||
subcategory: "" | ||
description: |- | ||
Manage associations between controls and security sub-categories. Associations defined outside this resouce will remain untouched through the lifecycle of this resource. Wiz managed controls cannot be associated to Wiz managed security sub-categories. This resource does not support imports; it can, however, overlay existing resources to bring them under management. | ||
--- | ||
|
||
# wiz_control_associations (Resource) | ||
|
||
Manage associations between controls and security sub-categories. Associations defined outside this resouce will remain untouched through the lifecycle of this resource. Wiz managed controls cannot be associated to Wiz managed security sub-categories. This resource does not support imports; it can, however, overlay existing resources to bring them under management. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "wiz_control_associations" "test" { | ||
security_sub_category_ids = [ | ||
"2e5bc0d5-835b-4b4c-99cf-b1c6ace90a52", | ||
"708ec4a1-1a5c-4cb3-9c52-511229c5bb35", | ||
] | ||
control_ids = [ | ||
"301e5fd0-6a1a-42a7-99f5-3b0436d55a7f", | ||
"a5fbd955-ed78-445a-827a-06d6cbe5aab2", | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `control_ids` (List of String) List of control IDs. | ||
- `security_sub_category_ids` (List of String) List of security sub-category IDs. | ||
|
||
### Optional | ||
|
||
- `details` (String) Details of the association. This information is not used to manage resources but can serve as notes or documentation for the associations. | ||
- Defaults to `undefined`. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Internal identifier for the association. | ||
|
||
|
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,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "wiz_host_config_rule_associations Resource - terraform-provider-wiz" | ||
subcategory: "" | ||
description: |- | ||
Manage associations between host configuration rules and security sub-categories. Associations defined outside this resouce will remain untouched through the lifecycle of this resource. Wiz managed host configuration rules cannot be associated to Wiz managed security sub-categories. This resource does not support imports; it can, however, overlay existing resources to bring them under management. | ||
--- | ||
|
||
# wiz_host_config_rule_associations (Resource) | ||
|
||
Manage associations between host configuration rules and security sub-categories. Associations defined outside this resouce will remain untouched through the lifecycle of this resource. Wiz managed host configuration rules cannot be associated to Wiz managed security sub-categories. This resource does not support imports; it can, however, overlay existing resources to bring them under management. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "wiz_host_config_rule_associations" "test" { | ||
security_sub_category_ids = [ | ||
"2e5bc0d5-835b-4b4c-99cf-b1c6ace90a52", | ||
"708ec4a1-1a5c-4cb3-9c52-511229c5bb35", | ||
] | ||
cloud_config_rule_ids = [ | ||
"301e5fd0-6a1a-42a7-99f5-3b0436d55a7f", | ||
"a5fbd955-ed78-445a-827a-06d6cbe5aab2", | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `host_config_rule_ids` (List of String) List of host configuration rule IDs. | ||
- `security_sub_category_ids` (List of String) List of security sub-category IDs. | ||
|
||
### Optional | ||
|
||
- `details` (String) Details of the association. This information is not used to manage resources but can serve as notes or documentation for the associations. | ||
- Defaults to `undefined`. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Internal identifier for the association. | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
examples/resources/wiz_cloud_config_rule_associations/resource.tf
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,10 @@ | ||
resource "wiz_cloud_config_rule_associations" "test" { | ||
security_sub_category_ids = [ | ||
"2e5bc0d5-835b-4b4c-99cf-b1c6ace90a52", | ||
"708ec4a1-1a5c-4cb3-9c52-511229c5bb35", | ||
] | ||
cloud_config_rule_ids = [ | ||
"301e5fd0-6a1a-42a7-99f5-3b0436d55a7f", | ||
"a5fbd955-ed78-445a-827a-06d6cbe5aab2", | ||
] | ||
} |
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,10 @@ | ||
resource "wiz_control_associations" "test" { | ||
security_sub_category_ids = [ | ||
"2e5bc0d5-835b-4b4c-99cf-b1c6ace90a52", | ||
"708ec4a1-1a5c-4cb3-9c52-511229c5bb35", | ||
] | ||
control_ids = [ | ||
"301e5fd0-6a1a-42a7-99f5-3b0436d55a7f", | ||
"a5fbd955-ed78-445a-827a-06d6cbe5aab2", | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
examples/resources/wiz_host_config_rule_associations/resource.tf
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,10 @@ | ||
resource "wiz_host_config_rule_associations" "test" { | ||
security_sub_category_ids = [ | ||
"2e5bc0d5-835b-4b4c-99cf-b1c6ace90a52", | ||
"708ec4a1-1a5c-4cb3-9c52-511229c5bb35", | ||
] | ||
cloud_config_rule_ids = [ | ||
"301e5fd0-6a1a-42a7-99f5-3b0436d55a7f", | ||
"a5fbd955-ed78-445a-827a-06d6cbe5aab2", | ||
] | ||
} |
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
Oops, something went wrong.