objectscale_iam_user (Resource)
This resource manages the full lifecycle of an Dell ObjectScale IAM user.
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 with the name set in `name` attribute on the ObjectScale
resource "objectscale_iam_user" "example_iam_user" {
name = "example_iam_user_1"
namespace = "ns1"
permissions_boundary_arn = "urn:ecs:iam:::policy/ECSS3FullAccess"
tags = [
{
"key" : "key1",
"value" : "value1"
},
{
"key" : "key2",
"value" : "value2"
}
]
}
# After the execution of above resource block, namespace would have been created on the ObjectScale array. For more information, Please check the terraform state file.
Schema
Required
name(String) Name of the user. Required.namespace(String) Namespace to which the user belongs to.
Optional
permissions_boundary_arn(String) Arn of the permissions boundary.tags(Attributes Set) Tags associated to the user. Default: []. Updatable. (see below for nested schema)
Read-Only
arn(String) Arn of the user.create_date(String) Date of creation of the IAM user.id(String) Identifier that is generated by ObjectScale when the resource is created.path(String) Path of the IAM user.permissions_boundary_type(String) Type of the permissions boundary.
Nested Schema for tags
Optional:
key(String) Key of the tag associated to the user.value(String) Value of the tag associated to 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 <user_name:namespace>
# Example:
terraform import objectscale_iam_user.iam_user 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.