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.
fixes mondoohq#160 --------- Signed-off-by: Matthias Theuermann <[email protected]>
- Loading branch information
1 parent
0496f60
commit 75b5a1c
Showing
8 changed files
with
509 additions
and
0 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 |
---|---|---|
|
@@ -15,6 +15,7 @@ Hmj | |
JFB | ||
JFUz | ||
Jhb | ||
jira | ||
KBp | ||
ljq | ||
LQV | ||
|
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_integration_jira Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Integrate the Ticketing System Jira with Mondoo to automatically create and close issues based on Mondoo findings. | ||
--- | ||
|
||
# mondoo_integration_jira (Resource) | ||
|
||
Integrate the Ticketing System Jira with Mondoo to automatically create and close issues based on Mondoo findings. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "jira_token" { | ||
description = "The Jira API Token" | ||
type = string | ||
sensitive = true | ||
} | ||
provider "mondoo" { | ||
space = "hungry-poet-123456" | ||
} | ||
# Setup the Jira integration | ||
resource "mondoo_integration_jira" "jira_integration" { | ||
name = "My Jira Integration" | ||
host = "https://your-instance.atlassian.net" | ||
email = "[email protected]" | ||
# default_project = "MONDOO" | ||
auto_create = true | ||
auto_close = true | ||
credentials = { | ||
token = var.jira_token | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--credentials)) | ||
- `email` (String) Jira user email. | ||
- `host` (String) Jira host URL. | ||
- `name` (String) Name of the integration. | ||
|
||
### Optional | ||
|
||
- `auto_close` (Boolean) Automatically close Jira issues for resolved Mondoo findings | ||
- `auto_create` (Boolean) Automatically create Jira issues for Mondoo findings. | ||
- `default_project` (String) Default Jira project (is represented by the project key e.g. `MONDOO`). | ||
- `space_id` (String) Mondoo Space Identifier. If it is not provided, the provider space is used. | ||
|
||
### Read-Only | ||
|
||
- `mrn` (String) Integration identifier. | ||
|
||
<a id="nestedatt--credentials"></a> | ||
### Nested Schema for `credentials` | ||
|
||
Required: | ||
|
||
- `token` (String, Sensitive) Jira API token. |
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,8 @@ | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoohq/mondoo" | ||
version = ">= 0.19" | ||
} | ||
} | ||
} |
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,24 @@ | ||
variable "jira_token" { | ||
description = "The Jira API Token" | ||
type = string | ||
sensitive = true | ||
} | ||
|
||
provider "mondoo" { | ||
space = "hungry-poet-123456" | ||
} | ||
|
||
# Setup the Jira integration | ||
resource "mondoo_integration_jira" "jira_integration" { | ||
name = "My Jira Integration" | ||
host = "https://your-instance.atlassian.net" | ||
email = "[email protected]" | ||
# default_project = "MONDOO" | ||
|
||
auto_create = true | ||
auto_close = true | ||
|
||
credentials = { | ||
token = var.jira_token | ||
} | ||
} |
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.