- Documentation
Elastic Compute Service
Elastic Compute Service
Best Practices
O&M
Configuring permissions for using custom commands
O&M
Configuring permissions for using custom commands
Configuring permissions for using custom commands
This topic describes how to grant limited permissions to IAM users for using custom commands via the IAM (Identity and Access Management) feature.
Applicable scenario
Custom commands created via cloud assistant may include operations that require high permissions, such as formatting disks, deleting files, and modifying system parameters. With IAM custom policies, you can restrict IAM user access to specified custom commands and control the scope of command execution.
Operation processes
Step 1: Create a custom policy
- Select the custom policy tab to enter the custom policy list page.
- Click the "Create custom policy" button and configure the parameters described in the following table.
This practice only describes how to configure permissions for using custom commands. For detailed custom policies, see Policy overview. - Click the "Create policy" button to complete creation.
- After the policy is created, if an IAM user without permission tries to use the custom commands covered by the policy, the message "The specified resource is not allowed to operate." is prompted on the job creation page.
Step 2: Grant permission for an IAM user
- Select the custom policy tab to enter the custom policy list page.
- On the custom policy tab, find the policy you created, and click the "Manage" button in the "Action" column to the right of the target policy.
- On the policy details page, select the "Authorization" tab and then choose "Global Authorization".
- Click the "Add Authorization" button, select "User", and select the IAM user who can execute the policy-specified custom commands.
- Click the "Confirm" button to add permission.
- After the permission is added, the IAM user can use the corresponding custom command via cloud assistant. For operation details, see Creating jobs.
Last updated: 2026.06.18 17:49:51