page_title | subcategory | description |
---|---|---|
twc_s3_bucket Resource - Timeweb Cloud |
Resource for describing needed S3 bucket and provides actual information about its status |
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
}
name
(String) Name for S3 bucketpreset_id
(Number) Preset ID for S3 buckettype
(String) Type for S3 bucket (private
,public
)
project_id
(Number) Project ID for created S3 bucket
access_key
(String, Sensitive) Key for access via S3-compatible clientsdisk_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 clientsid
(String) The ID of this resource.location
(String) Location of storageobject_amount
(Number) Stored objects amountsecret_key
(String, Sensitive) Secret for access via S3-compatible clientsstatus
(String) Current status of S3 bucket (no_paid
,created
,transfer
)
Read-Only:
size
(Number)used
(Number)