Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.78 KB

File metadata and controls

66 lines (49 loc) · 1.78 KB
page_title subcategory description
twc_s3_bucket Resource - Timeweb Cloud
Resource for describing needed S3 bucket and provides actual information about its status

twc_s3_bucket (Resource)

Resource for describing needed S3 bucket and provides actual information about its status

Примеры использования

# Select any preset from location = "ru-1", 10 Gb disk space with price between 50 and 100 RUB
data "twc_s3_preset" "example-s3-preset" {
  location = "ru-1"

  disk = 10 * 1024

  price_filter {
    from = 50
    to = 100
  }
}

# Example private S3 bucket
resource "twc_s3_bucket" "example-s3-bucket" {
  name = "example-s3-bucket"
  type = "private"
  preset_id = data.twc_s3_preset.example-s3-preset.id
}

Schema

Required

  • name (String) Name for S3 bucket
  • preset_id (Number) Preset ID for S3 bucket
  • type (String) Type for S3 bucket (private, public)

Optional

  • project_id (Number) Project ID for created S3 bucket

Read-Only

  • access_key (String, Sensitive) Key for access via S3-compatible clients
  • disk_stats (List of Object) Information about storage disk stats (see below for nested schema)
  • full_name (String) Full name for S3 bucket (with random prefix)
  • hostname (String) Hostname for access via S3-compatible clients
  • id (String) The ID of this resource.
  • location (String) Location of storage
  • object_amount (Number) Stored objects amount
  • secret_key (String, Sensitive) Secret for access via S3-compatible clients
  • status (String) Current status of S3 bucket (no_paid, created, transfer)

Nested Schema for disk_stats

Read-Only:

  • size (Number)
  • used (Number)