Skip to main content

rg service-linked-role

Manage service-linked roles

Run ecctl rg service-linked-role <action> -h for usage, or ecctl schema rg.service-linked-role.<action> --full for the complete, agent-readable spec of every parameter and behavior.

create

ecctl rg service-linked-role create [flags]

Create service-linked role

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
CreateServiceLinkedRoleEvery time the command runs.Perform the resource operation.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--service-namestringcloud service name (e.g. polardb.aliyuncs.com)
--custom-suffixstringcustom suffix for the role name
--descriptionstringrole description

delete

ecctl rg service-linked-role delete <name> [flags]

Delete service-linked role

  • Kind: mutation · Risk: high
  • Synchronous: waits for SUCCEEDED (waiter deleted_after_delete, timeout 300s); use --no-wait to skip.
APIWhen calledPurpose
DeleteServiceLinkedRoleEvery time the command runs.Perform the resource operation.
GetServiceLinkedRoleDeletionStatusEvery time the command runs.Poll until the resource reaches the target state. (repeated)
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region