oci_database_key_store
This resource provides the Key Store resource in Oracle Cloud Infrastructure Database service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/KeyStore
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database
Creates a Key Store.
Example Usage
resource "oci_database_key_store" "test_key_store" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.key_store_display_name
	type_details {
		#Required
		admin_username = var.key_store_type_details_admin_username
		connection_ips = var.key_store_type_details_connection_ips
		secret_id = oci_vault_secret.test_secret.id
		type = var.key_store_type_details_type
		vault_id = oci_kms_vault.test_vault.id
	}
	#Optional
	defined_tags = var.key_store_defined_tags
	freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
- compartment_id- (Required) (Updatable) The OCID of the compartment.
- defined_tags- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_name- (Required) The user-friendly name for the key store. The name does not need to be unique.
- freeform_tags- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:- {"Department": "Finance"}
- type_details- (Required) (Updatable) Key store type details.- admin_username- (Required) (Updatable) The administrator username to connect to Oracle Key Vault
- connection_ips- (Required) (Updatable) The list of Oracle Key Vault connection IP addresses.
- secret_id- (Required) (Updatable) The OCID of the Oracle Cloud Infrastructure secret.
- type- (Required) (Updatable) The type of key store.
- vault_id- (Required) (Updatable) The OCID of the Oracle Cloud Infrastructure vault. This parameter and- secretIdare required for Customer Managed Keys.
 
** 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:
- associated_databases- List of databases associated with the key store.- db_name- The name of the database that is associated with the key store.
- db_unique_name- The unique name of the database that is associated with the key store.
- id- The database OCID.
 
- associated_long_term_backup_count- Indicates the number of long term backups of Autonomous Databases associated with this backup destination.
- associated_long_term_backups- List of long term backups of Autonomous Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.- display_name- The display name for the long term backup for the autonomous database.
- id- The OCID of the Autonomous Database backup.
 
- compartment_id- The OCID of the compartment.
- defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_name- The user-friendly name for the key store. The name does not need to be unique.
- freeform_tags- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:- {"Department": "Finance"}
- id- The OCID of the key store.
- lifecycle_details- Additional information about the current lifecycle state.
- state- The current state of the key store.
- system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time_created- The date and time that the key store was created.
- type_details- Key store type details.- admin_username- The administrator username to connect to Oracle Key Vault
- connection_ips- The list of Oracle Key Vault connection IP addresses.
- secret_id- The OCID of the Oracle Cloud Infrastructure secret.
- type- The type of key store.
- vault_id- The OCID of the Oracle Cloud Infrastructure vault. This parameter and- secretIdare required for Customer Managed Keys.
 
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
	* create - (Defaults to 20 minutes), when creating the Key Store
	* update - (Defaults to 20 minutes), when updating the Key Store
	* delete - (Defaults to 20 minutes), when destroying the Key Store
Import
KeyStores can be imported using the id, e.g.
$ terraform import oci_database_key_store.test_key_store "id"