diff --git a/docs/resources/auth_method_oidc.md b/docs/resources/auth_method_oidc.md index 79ed989b..a740edda 100644 --- a/docs/resources/auth_method_oidc.md +++ b/docs/resources/auth_method_oidc.md @@ -10,7 +10,28 @@ description: |- The OIDC auth method resource allows you to configure a Boundary auth_method_oidc. +## Example Usage +```terraform +resource "boundary_scope" "org" { + name = "organization_one" + description = "My first scope!" + scope_id = "global" + auto_create_admin_role = true + auto_create_default_role = true +} + +resource "boundary_auth_method_oidc" "vault" { + api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200" + client_id = "eieio" + client_secret = "hvo_secret_XO" + description = "My Boundary OIDC Auth Method for Vault" + issuer = "https://XO-XO-XO-XO-XOXOXO.vault.hashicorp.cloud:8200/v1/identity/oidc/provider/my-provider" + scope_id = "global" + signing_algorithms = ["RS256"] + type = "oidc" +} +``` ## Schema @@ -43,3 +64,11 @@ The OIDC auth method resource allows you to configure a Boundary auth_method_oid ### Read-Only - `id` (String) The ID of the auth method. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import boundary_auth_method_oidc.foo +``` diff --git a/examples/resources/boundary_auth_method_oidc/import.sh b/examples/resources/boundary_auth_method_oidc/import.sh new file mode 100644 index 00000000..64b389d2 --- /dev/null +++ b/examples/resources/boundary_auth_method_oidc/import.sh @@ -0,0 +1 @@ +terraform import boundary_auth_method_oidc.foo \ No newline at end of file diff --git a/examples/resources/boundary_auth_method_oidc/resource.tf b/examples/resources/boundary_auth_method_oidc/resource.tf new file mode 100644 index 00000000..9c337cf9 --- /dev/null +++ b/examples/resources/boundary_auth_method_oidc/resource.tf @@ -0,0 +1,18 @@ +resource "boundary_scope" "org" { + name = "organization_one" + description = "My first scope!" + scope_id = "global" + auto_create_admin_role = true + auto_create_default_role = true +} + +resource "boundary_auth_method_oidc" "vault" { + api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200" + client_id = "eieio" + client_secret = "hvo_secret_XO" + description = "My Boundary OIDC Auth Method for Vault" + issuer = "https://XO-XO-XO-XO-XOXOXO.vault.hashicorp.cloud:8200/v1/identity/oidc/provider/my-provider" + scope_id = "global" + signing_algorithms = ["RS256"] + type = "oidc" +}