oci_identity_auth_token

This resource provides the Auth Token resource in Oracle Cloud Infrastructure Identity service.

Creates a new auth token for the specified user. For information about what auth tokens are for, see Managing User Credentials.

You must specify a description for the auth token (although it can be an empty string). It does not have to be unique, and you can change it anytime with UpdateAuthToken.

Every user has permission to create an auth token for their own user ID. An administrator in your organization does not need to write a policy to give users this ability. To compare, administrators who have permission to the tenancy can use this operation to create an auth token for any user, including themselves.

Example Usage

resource "oci_identity_auth_token" "test_auth_token" {
	#Required
	description = var.auth_token_description
	user_id = oci_identity_user.test_user.id
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Auth Token * update - (Defaults to 20 minutes), when updating the Auth Token * delete - (Defaults to 20 minutes), when destroying the Auth Token

Import

AuthTokens can be imported using the id, e.g.

$ terraform import oci_identity_auth_token.test_auth_token "users/{userId}/authTokens/{authTokenId}"