oci_objectstorage_object

This resource provides the Object resource in Oracle Cloud Infrastructure Object Storage service.

Creates a new object or overwrites an existing object with the same name. The maximum object size allowed by PutObject is 50 GiB.

See Object Names for object naming requirements.

See Special Instructions for Object Storage PUT for request signature requirements.

Example Usage

resource "oci_objectstorage_object" "test_object" {
	#Required
	bucket = var.object_bucket
	content = var.object_content
	namespace = var.object_namespace
	object = var.object_object

	#Optional
	cache_control = var.object_cache_control
	content_disposition = var.object_content_disposition
	content_encoding = var.object_content_encoding
	content_language = var.object_content_language
	content_type = var.object_content_type
	delete_all_object_versions = var.object_delete_all_object_versions
	metadata = var.object_metadata
	storage_tier = var.object_storage_tier
    opc_sse_kms_key_id = var.object_opc_sse_kms_key_id
}

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

Import

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

$ terraform import oci_objectstorage_object.test_object "n/{namespaceName}/b/{bucketName}/o/{objectName}"