oci_mysql_blue_green_deployment

This resource provides the Blue Green Deployment resource in Oracle Cloud Infrastructure MySQL Database service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/mysql/latest/BlueGreenDeployment

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/mysql

Creates a blue/green deployment resource and its replication channel.

Example Usage

resource "oci_mysql_blue_green_deployment" "test_blue_green_deployment" {
	#Required
	channel_details {
		#Required
		source_password = var.blue_green_deployment_channel_details_source_password
		source_username = var.blue_green_deployment_channel_details_source_username
		ssl_mode = var.blue_green_deployment_channel_details_ssl_mode

		#Optional
		applier_username = var.blue_green_deployment_channel_details_applier_username
		ssl_ca_certificate {
			#Required
			certificate_type = var.blue_green_deployment_channel_details_ssl_ca_certificate_certificate_type
			contents = var.blue_green_deployment_channel_details_ssl_ca_certificate_contents
		}
	}
	compartment_id = var.compartment_id
	display_name = var.blue_green_deployment_display_name
	source_db_system_id = oci_mysql_mysql_db_system.test_mysql_db_system.id
	target_db_system_details {
		#Required
		mysql_version = var.blue_green_deployment_target_db_system_details_mysql_version

		#Optional
		configuration_id = oci_mysql_mysql_configuration.test_mysql_configuration.id
		data_storage_size_in_gb = var.blue_green_deployment_target_db_system_details_data_storage_size_in_gb
		shape_name = oci_mysql_shape.test_shape.name
	}

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
}

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 60 minutes), when creating the Blue Green Deployment * update - (Defaults to 30 minutes), when updating the Blue Green Deployment * delete - (Defaults to 20 minutes), when destroying the Blue Green Deployment

Import

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

$ terraform import oci_mysql_blue_green_deployment.test_blue_green_deployment "id"