ionoscloud_s3_versioning
Manages Buckets versioning on IONOS CLOUD.
Previousionoscloud_s3_bucket_server_side_encryption_configurationNextionoscloud_s3_bucket_website_configuration
Last updated
Manages Buckets versioning on IONOS CLOUD.
Manages Buckets versioning on IONOS CLOUD.
resource "ionoscloud_s3_bucket" "example" {
name = "example"
}
resource "ionoscloud_s3_bucket_versioning" "example"{
bucket = ionoscloud_s3_bucket.example.name
versioning_configuration {
status = "Enabled"
}
}
The following arguments are supported:
bucket - (Required)[string] The name of the bucket where the object will be stored.
versioning_configuration - (Required)[block] A block of versioning_configuration as defined below.
status - (Required)[string] The versioning state of the bucket. Can be Enabled or Suspended.
mfa_delete - (Optional)[string] Specifies whether MFA delete is enabled or not. Can be Enabled or Disabled.
IONOS Object Storage Bucket Versioning can be imported using the bucket name.
Last updated
terraform import ionoscloud_s3_bucket_versioning.example example