×

10.6. oblakoteka_object_storage_bucket

 
Defines a bucket within the storage.
 
Example Use
resource "oblakoteka_object_storage_bucket" "mybucket" {
 storage_id = oblakoteka_object_storage.storage_test.id
 name = "mybucket"
 note = "bucket1 on mystorage"
# анонимный доступ: только чтение
 anonymous_access_type = 0
 acl = [
    {
      access_key_id = oblakoteka_object_storage_access_key.key1.id
      access_type = 2
    }
 move_into_commercial_mode_on_test_out = false
 max_size = 10000000
 in_test = true
# версионирование: выключено
 versioning = false
}
 
Attributes:
  • storage_id (Required): Associated storage ID.
  • name  (Required): Name of the bucket.
  • note  (Computed, Optional): Additional note for the bucket.
  • max_size_in_bytes  (Computed, Optional): Maximum size limit for the bucket.
  • anonymous_access_type  (Computed, Optional): Access type for anonymous users.
  Values:
  0 – none
  1 – read
  2 – read and write
  • move_into_commercial_mode_on_test_out  (Computed, Optional): Flag to move to commercial mode after test.
  • acl (Optional): Access Control List.
  • acl.access_key_id (Required): Access key ID.
  • acl.access_type (Required): Access type:
  Values:
  0 — deny
  1 — read
  2 — read/write
  • versioning  (Computed, Optional): Flag for versioning support. False or True
  • id (Computed): Unique identifier for the bucket.