objectscale_object_user_secret_key (Resource)
This resource allows end user to provision and manage an Dell ObjectScale user’s S3 credentials—creating, reading, rotating (updating), and deleting an access/secret key pair tied to a specific ObjectScale user.
Example Usage
/*
Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
# Available actions: Create, Update, Delete and Import
# After `terraform apply` of this example file it will create a new user access key with the name set in `name` attribute on the ObjectScale
resource "objectscale_object_user_secret_key" "test_object_user_secret_key" {
username = "sample_user_2"
namespace = "ns1"
expiry_in_mins = "2"
}
# After the execution of above resource block, access key would have been created on the user of the ObjectScale array. For more information, Please check the terraform state file.
Schema
Required
namespace(String) Namespace to which the user belongs to.username(String) Name of the user to which the key is attached. Required.
Optional
expiry_in_mins(String) Expiry of the existing secret key in minutes.secret_key(String, Sensitive) Secret key associated with the user.
Read-Only
id(String) Identifier that is generated by ObjectScale when the resource is created.key_expiry_timestamp(String) Expiry timestamp of the key.key_timestamp(String) Timestamp of creation of the key.
Unless specified otherwise, all fields of this resource can be updated.
Import
Import is supported using the following syntax:
# Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
# Licensed under the Mozilla Public License Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://mozilla.org/MPL/2.0/
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The command is
# terraform import objectscale_object_user_secret_key.test_object_user_secret_key <secret_key_id:user_name:namespace>
# Example:
terraform import objectscale_object_user_secret_key.test_object_user_secret_key example_secret_key_id:example_object_user:name_space_1
# after running this command, populate the name field and other required parameters in the config file to start managing this resource.
# Note: running "terraform show" after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.