oci_file_storage_export_set

This resource provides the Export Set resource in Oracle Cloud Infrastructure File Storage service.

The export_set resource cannot be directly created or destroyed. An export set is created by the service automatically when a mount target is created. When a mount target is deleted, the export set associated with it is also deleted automatically.

You can use this resource for managing existing export sets from within Terraform. The resource exposes the following updatable attributes:

display_name
max_fs_stat_bytes
max_fs_stat_files

Any other updates to the behavior of export_set require updating the parent mount target. If you intend to manage export_set with Terraform, you should import the mount_target resource as well. The mount_target resource includes the mount_target_id attribute, which is required for updates to export_set.

Only one export set resource should be created per mount target.

Example Usage

resource "oci_file_storage_export_set" "test_export_set" {
    #Required
    mount_target_id = oci_file_storage_mount_target.test_mount_target.id
  
    #Optional
    display_name = var.export_set_name
    max_fs_stat_bytes = 23843202333
    max_fs_stat_files = 223442
}

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

Import

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

$ terraform import oci_file_storage_export_set.test_export_set "id"