oci_database_management_named_credential

This resource provides the Named Credential resource in Oracle Cloud Infrastructure Database Management service.

Creates a named credential.

Example Usage

resource "oci_database_management_named_credential" "test_named_credential" {
	#Required
	compartment_id = var.compartment_id
	content {
		#Required
		credential_type = var.named_credential_content_credential_type
		password_secret_access_mode = var.named_credential_content_password_secret_access_mode
		password_secret_id = oci_vault_secret.test_secret.id
		role = var.named_credential_content_role
		user_name = oci_identity_user.test_user.name
	}
	name = var.named_credential_name
	scope = var.named_credential_scope
	type = var.named_credential_type

	#Optional
	associated_resource = var.named_credential_associated_resource
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.named_credential_description
	freeform_tags = {"Department"= "Finance"}
}

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 Named Credential * update - (Defaults to 20 minutes), when updating the Named Credential * delete - (Defaults to 20 minutes), when destroying the Named Credential

Import

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

$ terraform import oci_database_management_named_credential.test_named_credential "id"