Object Storage Key

Creates and manages IONOS Object Storage keys.

Manages an IONOS Object Storage Key on IonosCloud.

Example Usage

resource "ionoscloud_user" "example" {
    first_name              = "example"
    last_name               = "example"
    email                   = "unique@email.com"
    password                = "abc123-321CBA"
    administrator           = false
    force_sec_auth          = false
}

resource "ionoscloud_s3_key" "example" {
    user_id                 = ionoscloud_user.example.id
    active                  = true
}

Argument Reference

The following arguments are supported:

  • user_id - (Required)[string] The UUID of the user owning the IONOS Object Storage Key.

  • active - (Optional)[boolean] Whether the IONOS Object Storage is active / enabled or not - Please keep in mind this is only required on create. Default value in true

  • secret_key - (Computed) The IONOS Object Storage Secret key.

Import

An IONOS Object Storage Unit resource can be imported using its user id as well as its resource id, e.g.

terraform import ionoscloud_s3_key.demo {userId}/{s3KeyId}

This can be helpful when you want to import IONOS Object Storage Keys which you have already created manually or using other means, outside of terraform.

Last updated