-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0526f1
commit 470908b
Showing
10 changed files
with
375 additions
and
52 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 was deleted.
Oops, something went wrong.
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,83 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_integration_oci_tenant Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Example resource | ||
--- | ||
|
||
# mondoo_integration_oci_tenant (Resource) | ||
|
||
Example resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoo/mondoo" | ||
} | ||
} | ||
} | ||
provider "mondoo" { | ||
region = "us" | ||
} | ||
resource "mondoo_space" "my_space" { | ||
name = "My Space Name" | ||
# space_id = "your-space-id" # optional | ||
org_id = "your-org-1234567" | ||
} | ||
resource "mondoo_integration_oci_tenant" "tenant_abc" { | ||
space_id = mondoo_space.my_space.id | ||
name = "tenant ABC" | ||
tenancy = "ocid1.tenancy.oc1..aaaaaaaavvvvvvvvwwwwwwwwxxxxxx..." | ||
region = "us-ashburn-1" | ||
user = "ocid1.user.oc1..aaaaaaaabbbbbbbbccccccccddddeeeeee..." | ||
credentials = { | ||
fingerprint = "12:34:56:78:9a:bc:de:f1:23:45:67:89:ab:cd:ef:12" | ||
private_key = <<EOT | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCf2kWtE6JkkP6E | ||
cnQx/1oa4GqFs23nJFBQhgn9AThqAyUC1ilLQV9ZKjQj5/6+ljq/i4H/zU5lt2yB | ||
.... | ||
qpbiCwjFYHmjWFygtYPhRH4T5TEzu4DXhjr4nn99sF0QFKcYkcTSIm7aZppYG4OS | ||
1fnF+XoTcyFIGcSX/I1ND/4= | ||
-----END PRIVATE KEY----- | ||
EOT | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--credentials)) | ||
- `region` (String) Example configurable attribute | ||
- `tenancy` (String) Example configurable attribute | ||
- `user` (String) Example configurable attribute | ||
|
||
### Optional | ||
|
||
- `name` (String) Example configurable attribute | ||
- `org_id` (String) Example configurable attribute with default value | ||
- `space_id` (String) Example configurable attribute with default value | ||
|
||
### Read-Only | ||
|
||
- `mrn` (String) Example identifier | ||
|
||
<a id="nestedatt--credentials"></a> | ||
### Nested Schema for `credentials` | ||
|
||
Required: | ||
|
||
- `fingerprint` (String) | ||
- `private_key` (String, Sensitive) |
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,68 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_registration_token Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Example resource | ||
--- | ||
|
||
# mondoo_registration_token (Resource) | ||
|
||
Example resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoo/mondoo" | ||
} | ||
} | ||
} | ||
provider "mondoo" { | ||
region = "us" | ||
} | ||
resource "mondoo_space" "my_space" { | ||
name = "My Space Name" | ||
# space_id = "your-space-id" # optional | ||
org_id = "your-org-id" | ||
} | ||
resource "mondoo_registration_token" "token" { | ||
description = "Service Account for Terraform" | ||
space_id = mondoo_space.my_space.id | ||
no_exipration = true | ||
// expires_in = "1h" | ||
depends_on = [ | ||
mondoo_space.my_space | ||
] | ||
} | ||
output "generated_token" { | ||
value = mondoo_registration_token.token.result | ||
sensitive = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `space_id` (String) Example configurable attribute with default value | ||
|
||
### Optional | ||
|
||
- `description` (String) Example configurable attribute with default value | ||
- `expires_at` (String) Example configurable attribute with default value | ||
- `expires_in` (String) Example configurable attribute with default value | ||
- `no_exipration` (Boolean) Example configurable attribute with default value | ||
- `revoked` (Boolean) Example configurable attribute with default value | ||
|
||
### Read-Only | ||
|
||
- `mrn` (String) Example identifier | ||
- `result` (String, Sensitive) The generated random string. |
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,61 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_service_account Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Example resource | ||
--- | ||
|
||
# mondoo_service_account (Resource) | ||
|
||
Example resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoo/mondoo" | ||
} | ||
} | ||
} | ||
provider "mondoo" { | ||
region = "us" | ||
} | ||
resource "mondoo_space" "my_space" { | ||
name = "My Space Name" | ||
# space_id = "your-space-id" # optional | ||
org_id = "your-org-1234567" | ||
} | ||
resource "mondoo_service_account" "service_account" { | ||
name = "Service Account Terraform New" | ||
description = "Service Account for Terraform" | ||
roles = [ | ||
"//iam.api.mondoo.app/roles/viewer", // TODO use "roles/viewer" | ||
] | ||
space_id = mondoo_space.my_space.id | ||
depends_on = [ | ||
mondoo_space.my_space | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `description` (String) Example configurable attribute with default value | ||
- `name` (String) Example configurable attribute | ||
- `org_id` (String) Example configurable attribute with default value | ||
- `roles` (List of String) tbd | ||
- `space_id` (String) Example configurable attribute with default value | ||
|
||
### Read-Only | ||
|
||
- `mrn` (String) Example identifier |
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,140 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_space Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Space resource | ||
--- | ||
|
||
# mondoo_space (Resource) | ||
|
||
Space resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoo/mondoo" | ||
} | ||
} | ||
} | ||
provider "mondoo" { | ||
region = "us" | ||
} | ||
resource "mondoo_space" "my_space" { | ||
name = "My Space New" | ||
// id = "your-space-id" # optional otherwise it will be auto-generated | ||
org_id = "youthful-meitner-435985" | ||
} | ||
resource "mondoo_service_account" "service_account" { | ||
name = "Service Account Terraform New" | ||
description = "Service Account for Terraform" | ||
roles = [ | ||
"//iam.api.mondoo.app/roles/viewer", // TODO use "roles/viewer" | ||
] | ||
space_id = mondoo_space.my_space.id | ||
depends_on = [ | ||
mondoo_space.my_space | ||
] | ||
} | ||
resource "mondoo_integration_oci_tenant" "tenant_abc" { | ||
space_id = mondoo_space.my_space.id | ||
name = "tenant ABC" | ||
tenancy = "ocid1.tenancy.oc1..aaaaaaaabnjfuyr73mmvv6ep7heu57576mtqbhju5ni275c6rrfqiu6q6joq" | ||
region = "us-ashburn-1" | ||
user = "ocid1.user.oc1..aaaaaaaa2od3jeszy2fwgtvsp77s3y2hqaott37qg62ctm56ujf2crdgi5wa" | ||
credentials = { | ||
fingerprint = "72:f4:f6:50:16:43:32:1f:40:1e:39:59:eb:77:7b:38" | ||
private_key = <<EOT | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCf2kWtE6JkkP6E | ||
cnQx/1oa4GqFs23nJFBQhgn9AThqAyUC1ilLQV9ZKjQj5/6+ljq/i4H/zU5lt2yB | ||
6IWkpbShnwcRXsSYpHWvU+LW+AVYg2o2NNqrNbzo6jZ8SAIFsyHLaWCvQNl/jT82 | ||
nyeysjBHqxF0KjaknhMnB6HW8wWyVtqdJJpxoU0bOeGnLVptDl/Fd3cbEVn6uXNy | ||
9YD+9/moW7q1p4x6LuxpxW3M0vbC+v8ynWnXxrHF2Ztua93Q1yPNrlzr6IM0F4Jw | ||
HPwbR9zTAmk9bhwZhzF5gjoQzbPcgGZAr26kUwQyQziOLEVKCH4JDkD5REWt3n0R | ||
VkSu4eNBAgMBAAECggEAPl/Y5UaujKhJMBxK+8Fkgu1Dk4UmotU4I5uR5S/nN/Kf | ||
LAKuHUfWcT/3FXWuoOaU6O4CXXLanvUaOXymPU9Ncu1PQDdm5hryMuY8Mt6Xk2i/ | ||
9oPcOYdf/dB6Tzd31oqF6s3lJK1c0Rkn6+PhhShjj2uQhW/9X3GxDn87ZtjwRZxh | ||
joq5KbEutpHHJ4tNp9wJmbd0ldVBqx91NHOC1mFq3bfyVLC8kxE9d7BOrwT4TCRP | ||
I92b8uHZM0oVmYst+3oZwC89fuK/Z+tz3WyFXh3gePZARUaK5cC+StQvLI6+KxFA | ||
wm/FaqYXIHrPLE1WHYshgoseIstd8A5kRl3X1nqa0wKBgQDOEtlIoZ9E8MKAxrXD | ||
10GZNpo8ztZepiRE5+UnN4qKFA4cGdACfr8Imdu94zZSUPkcvr3emfzDpPOhnucU | ||
tuoHPw4HEmwXX1vu3N3z9rJUYr2E7Ni+BWmV3m20Q6o0XtZ9tlQSk0ivxLYQjide | ||
2vELERb5AvJBeV0tpHDDFggaXwKBgQDGlLFNVWSMdeHmjqUI+K3fcTd93hLaiAgg | ||
g5lDz75uLnNen6fGaLdgV3XwaJd9GNILnXckxDCwk3VkF/BOSGPqucrzBvKKSXrD | ||
lT6X6n1AQKu1wSa4zt6vTmSdGVOK2E/WnUMKPAV96WuLKl1SKS8dLgH5zdoUjGVv | ||
32X44comXwKBgHJS1qSKtZdDkkRq+Q/q7YOYXTz66sabmWd41xJIp90ufx1r3JBl | ||
zIlzAgt4b/x+25Ts5N0HxMitTFQPmddOGstmWdvmhnz49EGx2pir9gcGuGl0FFJn | ||
Ikp4mZf2KgjfzFL1wfKEL0ED+pV4p7Lh9/PRyVLgJZHZSK43mi9Am8I1AoGAUlqa | ||
CTNPxrygmcgwgz72hMLkO4vcj8p4bFuHNUszc2hKKkTWBH+rBQZgf/owUQ35Fh4Q | ||
qiu+8YvF1GPlIeH9pfu1QgJwlY8RnYkIc2Io3Xu0emUHFP+d9F/zc/9r2RoKSjvf | ||
8J+hu20RT56bIxa3VkedRCbtuTXcX3/rP0MMXcsCgYEAgaql3BG5em7CEcz8gETD | ||
cvtS4HWzLxcUEuQeqQBQBJqekXj1aqgYCwQ0RpBUaPkhEPsquiKkrYv321cQdAYH | ||
qpbiCwjFYHmjWFygtYPhRH4T5TEzu4DXhjr4nn99sF0QFKcYkcTSIm7aZppYG4OS | ||
1fnF+XoTcyFIGcSX/I1ND/4= | ||
-----END PRIVATE KEY----- | ||
EOT | ||
} | ||
} | ||
#resource "mondoo_integration_gcp_organization" "account_abc" { | ||
# space_id = mondoo_space.my_space.space_id | ||
# name = "account ABC" | ||
# organization_id = "ABC-project-id" | ||
# credentials { | ||
# client_id = "123456789012345678900" | ||
# client_email = "[email protected]" | ||
# private_key_id = "1234abcd1234abcd1234abcd1234abcd1234abcd" | ||
# private_key = "-----BEGIN PRIVATE KEY-----\n ... -----END PRIVATE KEY-----\n" | ||
# } | ||
#} | ||
# | ||
#resource "mondoo_integration_gcp_project" "account_abc" { | ||
# space_id = mondoo_space.my_space.space_id | ||
# name = "account ABC" | ||
# project_id = "ABC-project-id" | ||
# credentials { | ||
# client_id = "123456789012345678900" | ||
# client_email = "[email protected]" | ||
# private_key_id = "1234abcd1234abcd1234abcd1234abcd1234abcd" | ||
# private_key = "-----BEGIN PRIVATE KEY-----\n ... -----END PRIVATE KEY-----\n" | ||
# } | ||
#} | ||
#resource "mondoo_integration_azure_subscription" "account_abc" { | ||
# space_id = mondoo_space.my_space.space_id | ||
# name = "account ABC" | ||
# tenant_id = "abbc1234-abc1-123a-1234-abcd1234abcd" | ||
# credentials { | ||
# client_id = "1234abcd-abcd-1234-ab12-abcd1234abcd" | ||
# client_secret = "ABCD1234abcd1234abdc1234ABCD1234abcdefxxx=" | ||
# } | ||
#} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `org_id` (String) Organization where the space is created | ||
|
||
### Optional | ||
|
||
- `name` (String) Space Name | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Space identifier |
Oops, something went wrong.