S3 Bucket
Creates and manages IonosCloud S3 Buckets.
Manages S3 Buckets on IonosCloud.
Example Usage
Argument Reference
The following arguments are supported:
name
- (Required)[string] The bucket name. [ 3 .. 63 ] charactersregion
- (Optional)[string] Specifies the Region where the bucket will be created. Please refer to the list of available regionsobject_lock_enabled
- (Optional)[bool] The object lock configuration status of the bucket. Must betrue
orfalse
.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 is10m
.delete
- (Optional)[string] Time to wait for the bucket to be deleted. Default is10m
.
force_destroy
- (Optional)[bool] Default isfalse
.By setting force_destroy to true, you instruct Terraform to delete the bucket and all its contents during the terraform destroy process. This is particularly useful when dealing with buckets that contain objects, as it allows for automatic cleanup without requiring the manual deletion of objects beforehand. If force_destroy is not set or is set to false, Terraform will refuse to delete a bucket that still contains objects. You must manually empty the bucket before Terraform can remove it.There is a significant risk of accidental data loss when using this attribute, as it irreversibly deletes all contents of the bucket. It's crucial to ensure that the bucket does not contain critical data before using force_destroy.
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
Last updated