terraform-provider-garage/docs/resources/bucket.md
2023-11-23 12:40:06 -06:00

1.4 KiB

page_title subcategory description
garage_bucket Resource - terraform-provider-garage This resource can be used to manage Garage buckets.

garage_bucket (Resource)

This resource can be used to manage Garage buckets.

Example Usage

resource "garage_bucket" "bucket" {}

resource "garage_bucket" "bucket-with-website" {
  website_access_enabled        = true
  website_config_index_document = "index.html"
  website_config_error_document = "error.html"
}

resource "garage_bucket" "bucket-with-quota" {
  quota_max_size    = 1024
  quota_max_objects = 100
}

Schema

Optional

  • quota_max_objects (Number)
  • quota_max_size (Number)
  • website_access_enabled (Boolean)
  • website_config_error_document (String)
  • website_config_index_document (String)

Read-Only

  • bytes (Number)
  • global_aliases (List of String)
  • id (String) The ID of this resource.
  • keys (Set of Object) (see below for nested schema)
  • objects (Number)
  • unfinished_uploads (Number)

Nested Schema for keys

Read-Only:

  • access_key_id (String)
  • local_aliases (List of String)
  • name (String)
  • permissions_owner (Boolean)
  • permissions_read (Boolean)
  • permissions_write (Boolean)