-
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.
⭐️ new resource mondoo_iam_workload_identity_binding (#205)
* 🧹 update mondoo-go dependency * ⭐️ new resource mondoo_iam_workload_identity_binding * 📝 update example + docs * 🧹 update mondoo-go * 🔥 remove workaround, inconsistencies fixed * ✨ allow importing bindings --------- Signed-off-by: Salim Afiune Maya <[email protected]>
- Loading branch information
Showing
8 changed files
with
463 additions
and
38 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,48 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_iam_workload_identity_binding Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Allows management of a Mondoo Workload Identity Federation bindings. | ||
--- | ||
|
||
# mondoo_iam_workload_identity_binding (Resource) | ||
|
||
Allows management of a Mondoo Workload Identity Federation bindings. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
provider "mondoo" { | ||
space = "hungry-poet-123456" | ||
} | ||
resource "mondoo_iam_workload_identity_binding" "example" { | ||
name = "GitHub binding example" | ||
issuer_uri = "https://token.actions.githubusercontent.com" | ||
subject = "repo:mondoohq/server:ref:refs/heads/main" | ||
expiration = 3600 | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `issuer_uri` (String) URI for the token issuer, e.g. https://accounts.google.com. | ||
- `name` (String) Name of the binding. | ||
- `subject` (String) Unique identifier to confirm. | ||
|
||
### Optional | ||
|
||
- `allowed_audiences` (List of String) List of allowed audiences. | ||
- `description` (String) Description of the binding. | ||
- `expiration` (Number) Expiration in seconds associated with the binding. | ||
- `mappings` (Map of String) List of additional configurations to confirm. | ||
- `roles` (List of String) List of roles associated with the binding (e.g. agent mrn). | ||
- `space_id` (String) Mondoo space identifier. If there is no ID, the provider space is used. | ||
|
||
### Read-Only | ||
|
||
- `mrn` (String) The Mondoo resource name (MRN) of the created binding. |
8 changes: 8 additions & 0 deletions
8
examples/resources/mondoo_iam_workload_identity_binding/main.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,8 @@ | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoohq/mondoo" | ||
version = ">= 0.19" | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
examples/resources/mondoo_iam_workload_identity_binding/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 @@ | ||
provider "mondoo" { | ||
space = "hungry-poet-123456" | ||
} | ||
|
||
resource "mondoo_iam_workload_identity_binding" "example" { | ||
name = "GitHub binding example" | ||
issuer_uri = "https://token.actions.githubusercontent.com" | ||
subject = "repo:mondoohq/server:ref:refs/heads/main" | ||
expiration = 3600 | ||
} |
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
Oops, something went wrong.