Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
update generated docs action committed Nov 28, 2023
1 parent 16d52c2 commit 2ba84fb
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docs/resources/aws_oidc_credentials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "env0_aws_oidc_credentials Resource - terraform-provider-env0"
subcategory: ""
description: |-
---

# env0_aws_oidc_credentials (Resource)



## Example Usage

```terraform
resource "env0_aws_oidc_credentials" "credentials" {
name = "example"
role_arn = "arn::role::34"
duration = 3600
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) name for the oidc credentials
- `role_arn` (String) the aws role arn

### Optional

- `duration` (Number) the session duration in seconds. If set must be one of the following: 3600 (1h), 7200 (2h), 14400 (4h), 18000 (5h default), 28800 (8h), 43200 (12h)

### Read-Only

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
terraform import env0_aws_oidc_credentials.by_id d31a6b30-5f69-4d24-937c-22322754934e
terraform import env0_aws_oidc_credentials.by_name "credentials name"
```
10 changes: 10 additions & 0 deletions docs/resources/cloud_credentials_project_assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ resource "env0_aws_credentials" "credentials" {
arn = "Example role ARN"
}
resource "env0_aws_oidc_credentials" "credentials" {
name = "example"
role_arn = "Example role ARN"
}
data "env0_project" "project" {
name = "Default Organization Project"
}
Expand All @@ -26,6 +31,11 @@ resource "env0_cloud_credentials_project_assignment" "example" {
credential_id = env0_aws_credentials.credentials.id
project_id = data.env0_project.project.id
}
resource "env0_cloud_credentials_project_assignment" "example_oidc" {
credential_id = env0_aws_oidc_credentials.credentials.id
project_id = data.env0_project.project.id
}
```

<!-- schema generated by tfplugindocs -->
Expand Down

0 comments on commit 2ba84fb

Please sign in to comment.