ionoscloud_s3_object
Creates and manages IONOS Object Storage Objects.
Example Usage
resource "ionoscloud_s3_bucket" "example" {
name = "example"
object_lock_enabled = true
}
resource "ionoscloud_s3_object" "example" {
bucket = ionoscloud_s3_bucket.example.name
key = "object"
content = "body"
content_type = "text/plain"
cache_control = "no-cache"
content_disposition = "attachment"
content_encoding = "identity"
content_language = "en-GB"
expires = "2024-10-07T12:34:56Z"
website_redirect = "https://www.ionos.com"
server_side_encryption = "AES256"
tags = {
tk = "tv"
}
metadata = {
"mk" = "mv"
}
force_destroy = true
}
// Upload from file
resource "ionoscloud_s3_object" "example" {
bucket = ionoscloud_s3_bucket.example.name
key = "file-object"
source = "path/to/file"
}Argument Reference
Import
Last updated
Was this helpful?