oci_database_autonomous_container_database

This resource provides the Autonomous Container Database resource in Oracle Cloud Infrastructure Database service.

Creates an Autonomous Container Database in the specified Autonomous Exadata Infrastructure.

Example Usage

resource "oci_database_autonomous_container_database" "test_autonomous_container_database" {
	#Required
	display_name = var.autonomous_container_database_display_name
	patch_model = var.autonomous_container_database_patch_model

	#Optional
	cloud_autonomous_vm_cluster_id = oci_database_cloud_autonomous_vm_cluster.test_cloud_autonomous_vm_cluster.id
	autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id
	backup_config {

		#Optional
		backup_destination_details {
			#Required
			type = var.autonomous_container_database_backup_config_backup_destination_details_type

			#Optional
			dbrs_policy_id = oci_identity_policy.test_policy.id
			id = var.autonomous_container_database_backup_config_backup_destination_details_id
			internet_proxy = var.autonomous_container_database_backup_config_backup_destination_details_internet_proxy
			vpc_password = var.autonomous_container_database_backup_config_backup_destination_details_vpc_password
			vpc_user = var.autonomous_container_database_backup_config_backup_destination_details_vpc_user
		}
		recovery_window_in_days = var.autonomous_container_database_backup_config_recovery_window_in_days
	}
	compartment_id = var.compartment_id
	database_software_image_id = oci_database_database_software_image.test_database_software_image.id
	db_name = var.autonomous_container_database_db_name
	db_split_threshold = var.autonomous_container_database_db_split_threshold
	db_unique_name = var.autonomous_container_database_db_unique_name
	db_version = var.autonomous_container_database_db_version
	defined_tags = {"Operations.CostCenter"= "42"}
	distribution_affinity = var.autonomous_container_database_distribution_affinity
	fast_start_fail_over_lag_limit_in_seconds = var.autonomous_container_database_fast_start_fail_over_lag_limit_in_seconds
	freeform_tags = {"Department"= "Finance"}
	is_automatic_failover_enabled = var.autonomous_container_database_is_automatic_failover_enabled
	is_dst_file_update_enabled = var.autonomous_container_database_is_dst_file_update_enabled
	key_store_id = oci_database_key_store.test_key_store.id
	kms_key_id = oci_kms_key.test_key.id
	maintenance_window_details {

		#Optional
		custom_action_timeout_in_mins = var.autonomous_container_database_maintenance_window_details_custom_action_timeout_in_mins
		days_of_week {
			#Required
			name = var.autonomous_container_database_maintenance_window_details_days_of_week_name
		}
		hours_of_day = var.autonomous_container_database_maintenance_window_details_hours_of_day
		is_custom_action_timeout_enabled = var.autonomous_container_database_maintenance_window_details_is_custom_action_timeout_enabled
		is_monthly_patching_enabled = var.autonomous_container_database_maintenance_window_details_is_monthly_patching_enabled
		lead_time_in_weeks = var.autonomous_container_database_maintenance_window_details_lead_time_in_weeks
		months {
			#Required
			name = var.autonomous_container_database_maintenance_window_details_months_name
		}
		patching_mode = var.autonomous_container_database_maintenance_window_details_patching_mode
		preference = var.autonomous_container_database_maintenance_window_details_preference
		skip_ru = var.autonomous_container_database_maintenance_window_details_skip_ru
		weeks_of_month = var.autonomous_container_database_maintenance_window_details_weeks_of_month
	}
	net_services_architecture = var.autonomous_container_database_net_services_architecture
	peer_autonomous_container_database_display_name = var.autonomous_container_database_peer_autonomous_container_database_display_name
	peer_cloud_autonomous_vm_cluster_id = oci_database_cloud_autonomous_vm_cluster.test_cloud_autonomous_vm_cluster.id
	protection_mode = var.autonomous_container_database_protection_mode
	peer_autonomous_container_database_backup_config {

		#Optional
		backup_destination_details {
			#Required
			type = var.autonomous_container_database_peer_autonomous_container_database_backup_config_backup_destination_details_type

			#Optional
			dbrs_policy_id = oci_identity_policy.test_policy.id
			id = var.autonomous_container_database_peer_autonomous_container_database_backup_config_backup_destination_details_id
			internet_proxy = var.autonomous_container_database_peer_autonomous_container_database_backup_config_backup_destination_details_internet_proxy
			vpc_password = var.autonomous_container_database_peer_autonomous_container_database_backup_config_backup_destination_details_vpc_password
			vpc_user = var.autonomous_container_database_peer_autonomous_container_database_backup_config_backup_destination_details_vpc_user
		}
		recovery_window_in_days = var.autonomous_container_database_peer_autonomous_container_database_backup_config_recovery_window_in_days
	}
	peer_autonomous_container_database_compartment_id = oci_identity_compartment.test_compartment.id
	peer_autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id
	peer_db_unique_name = var.autonomous_container_database_peer_db_unique_name
	service_level_agreement_type = var.autonomous_container_database_service_level_agreement_type
	vault_id = oci_kms_vault.test_vault.id
	version_preference = var.autonomous_container_database_version_preference
	vm_failover_reservation = var.autonomous_container_database_vm_failover_reservation
	standby_maintenance_buffer_in_days = var.autonomous_container_database_standby_maintenance_buffer_in_days
}

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 12 hours), when creating the Autonomous Container Database * update - (Defaults to 12 hours), when updating the Autonomous Container Database * delete - (Defaults to 12 hours), when destroying the Autonomous Container Database

Import

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

$ terraform import oci_database_autonomous_container_database.test_autonomous_container_database "id"