-
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.
* ⭐️ AWS integration * 🧹 update mondoo schema * 🧹 remove region argument
- Loading branch information
1 parent
a3531cb
commit 4787a66
Showing
7 changed files
with
408 additions
and
3 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,92 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_integration_aws Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Continuously scan Google AWS organization and accounts for misconfigurations and vulnerabilities. | ||
--- | ||
|
||
# mondoo_integration_aws (Resource) | ||
|
||
Continuously scan Google AWS organization and accounts for misconfigurations and vulnerabilities. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "mondoo_org" { | ||
description = "Mondoo Organization" | ||
type = string | ||
} | ||
variable "aws_access_key" { | ||
description = "AWS access key" | ||
type = string | ||
} | ||
variable "aws_secret_key" { | ||
description = "AWS access key" | ||
type = string | ||
} | ||
provider "mondoo" {} | ||
# Create a new space | ||
resource "mondoo_space" "my_space" { | ||
name = "AWS Terraform" | ||
org_id = var.mondoo_org | ||
} | ||
# Setup the AWS integration | ||
resource "mondoo_integration_aws" "name" { | ||
space_id = mondoo_space.my_space.id | ||
name = "AWS Integration" | ||
credentials = { | ||
key = { | ||
access_key = var.aws_access_key | ||
secret_key = var.aws_secret_key | ||
} | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--credentials)) | ||
- `name` (String) Name of the integration. | ||
- `space_id` (String) Mondoo Space Identifier. | ||
|
||
### Read-Only | ||
|
||
- `mrn` (String) Integration identifier | ||
|
||
<a id="nestedatt--credentials"></a> | ||
### Nested Schema for `credentials` | ||
|
||
Optional: | ||
|
||
- `key` (Attributes) (see [below for nested schema](#nestedatt--credentials--key)) | ||
- `role` (Attributes) (see [below for nested schema](#nestedatt--credentials--role)) | ||
|
||
<a id="nestedatt--credentials--key"></a> | ||
### Nested Schema for `credentials.key` | ||
|
||
Required: | ||
|
||
- `access_key` (String, Sensitive) | ||
- `secret_key` (String, Sensitive) | ||
|
||
|
||
<a id="nestedatt--credentials--role"></a> | ||
### Nested Schema for `credentials.role` | ||
|
||
Required: | ||
|
||
- `role_arn` (String, Sensitive) | ||
|
||
Optional: | ||
|
||
- `external_id` (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,9 @@ | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoohq/mondoo" | ||
version = ">= 0.4.0" | ||
} | ||
} | ||
} | ||
|
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,36 @@ | ||
variable "mondoo_org" { | ||
description = "Mondoo Organization" | ||
type = string | ||
} | ||
|
||
variable "aws_access_key" { | ||
description = "AWS access key" | ||
type = string | ||
} | ||
|
||
variable "aws_secret_key" { | ||
description = "AWS access key" | ||
type = string | ||
} | ||
|
||
provider "mondoo" {} | ||
|
||
# Create a new space | ||
resource "mondoo_space" "my_space" { | ||
name = "AWS Terraform" | ||
org_id = var.mondoo_org | ||
} | ||
|
||
# Setup the AWS integration | ||
resource "mondoo_integration_aws" "name" { | ||
space_id = mondoo_space.my_space.id | ||
name = "AWS Integration" | ||
|
||
credentials = { | ||
key = { | ||
access_key = var.aws_access_key | ||
secret_key = var.aws_secret_key | ||
} | ||
} | ||
} | ||
|
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.