objectscale_iam_user_access_key (Resource)
This resource Enables the creation and management of secure programmatic access for Dell ObjectScale users by provisioning and controlling S3 compatible access keys.
Example Usage
/*
Copyright (c) 2025 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_iam_user_access_key" "test_iam_user_access_key" {
username = "sample_user_1"
namespace = "ns1"
status = "Active"
id = "AKIA80817B9F1F4C72CB"
}
# 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
status(String) Status of the access key attached to the user.
Read-Only
create_date(String) Creation date of the access key.id(String) Identifier that is generated by ObjectScale when the resource is created.secret_access_key(String, Sensitive) Secret access key associated with the user.
Unless specified otherwise, all fields of this resource can be updated.
Import
Import is supported using the following syntax:
# Copyright (c) 2025 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_iam_user.iam_user_access_key <access_key_id:user_name:namespace>
# Example:
terraform import objectscale_iam_user_access_key.iam_user_access_key example_access_key_id:example_iam_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.