S3 Bucket

Creates and manages IonosCloud S3 Buckets.

Manages S3 Buckets on IonosCloud.

Example Usage


resource "ionoscloud_s3_bucket" "example" {
  name = "example"
  region = "eu-central-3"
  object_lock_enabled = true
  force_destroy = true
  
  tags = {
    key1 = "value1"
    key2 = "value2"
  }

  timeouts {
    create = "10m"
    delete = "10m"
  }
}

Argument Reference

The following arguments are supported:

  • name - (Required)[string] The bucket name. [ 3 .. 63 ] characters

  • region - (Optional)[string] Specifies the Region where the bucket will be created. Please refer to the list of available regions

  • object_lock_enabled - (Optional)[bool] The object lock configuration status of the bucket. Must be true or false.

  • tags - (Optional) A mapping of tags to assign to the bucket.

  • timeouts - (Optional) Timeouts for this resource.

    • create - (Optional)[string] Time to wait for the bucket to be created. Default is 10m.

    • delete - (Optional)[string] Time to wait for the bucket to be deleted. Default is 10m.

  • force_destroy - (Optional)[bool] If true, the bucket and the contents of the bucket will be destroyed. Default is false.

Attributes Reference

  • id - (Computed) Name of the bucket

⚠️ Note: The name must be unique across all IONOS accounts in all S3 regions. The name should adhere to the following restrictions.

Import

Resource Bucket can be imported using the bucket name

terraform import ionoscloud_s3_bucket.example example

Last updated