oci_bds_bds_instance_api_key

This resource provides the Bds Instance Api Key resource in Oracle Cloud Infrastructure Big Data Service service.

Create an API key on behalf of the specified user.

Example Usage

resource "oci_bds_bds_instance_api_key" "test_bds_instance_api_key" {
	#Required
	bds_instance_id = oci_bds_bds_instance.test_bds_instance.id
	key_alias = var.bds_instance_api_key_key_alias
	passphrase = var.bds_instance_api_key_passphrase
	user_id = oci_identity_user.test_user.id

	#Optional
	default_region = var.bds_instance_api_key_default_region
	domain_ocid = var.bds_instance_api_key_domain_ocid
}

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:

<<<<<<< ours * default_region - The name of the region to establish the Object Storage endpoint which was set as part of key creation operation. If no region was provided this will be set to be the same region where the cluster lives. Example us-phoenix-1 .

* domain_ocid - Identity domain OCID ,where user is present. For default domain ,this field will be optional.

Timeouts

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

Import

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

$ terraform import oci_bds_bds_instance_api_key.test_bds_instance_api_key "bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}"