From 2ba84fb513c2024d174819b30084ea562ed8d741 Mon Sep 17 00:00:00 2001 From: update generated docs action Date: Tue, 28 Nov 2023 14:04:58 +0000 Subject: [PATCH] Update docs --- docs/resources/aws_oidc_credentials.md | 46 +++++++++++++++++++ .../cloud_credentials_project_assignment.md | 10 ++++ 2 files changed, 56 insertions(+) create mode 100644 docs/resources/aws_oidc_credentials.md diff --git a/docs/resources/aws_oidc_credentials.md b/docs/resources/aws_oidc_credentials.md new file mode 100644 index 00000000..d1665391 --- /dev/null +++ b/docs/resources/aws_oidc_credentials.md @@ -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 + +### 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" +``` diff --git a/docs/resources/cloud_credentials_project_assignment.md b/docs/resources/cloud_credentials_project_assignment.md index 824a9e1d..123b89bb 100644 --- a/docs/resources/cloud_credentials_project_assignment.md +++ b/docs/resources/cloud_credentials_project_assignment.md @@ -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" } @@ -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 +} ```