All Products
Search
Document Center

Elastic Compute Service:RAM authorization

Last Updated:Nov 14, 2024
Resource Access Management (RAM) is a service provided by Alibaba Cloud to manage user identities and resource access permissions. You can use RAM to prevent RAM users from sharing the AccessKey pairs of your Alibaba Cloud account. You can also use RAM to grant minimum permissions to RAM users. RAM uses policies to define permissions.
This topic describes the elements, such as Action, Resource, and Condition, which are defined by ECS. You can use the elements to create policies in RAM. The code (RamCode) in RAM that is used to indicate ECS is [{"popCode":"Ecs","ramCodes":["ecs","vpc"]},{"popCode":"ecs-workbench","ramCodes":["ecs-workbench"]}]. You can grant permissions on ECS at the RESOURCE.

General structure of a policy

Policies can be stored as JSON files. The following code provides an example on the general structure of a policy:
{
  "Version": "1",
  "Statement": [
    {
      "Effect": "<Effect>",
      "Action": "<Action>",
      "Resource": "<Resource>",
      "Condition": {
        "<Condition_operator>": {
          "<Condition_key>": [
            "<Condition_value>"
          ]
        }
      }
    }
  ]
}
The following list describes the fields in the policy:
  • Effect: specifies the authorization effect. Valid values: Allow, Deny.
  • Action: specifies one or more API operations that are allowed or denied. For more information, see the Action section of this topic.
  • Resource: specifies one or more resources to which the policy applies. You can use an Alibaba Cloud Resource Name (ARN) to specify a resource. For more information, see the Resource section of this topic.
  • Condition: specifies one or more conditions that are required for the policy to take effect. This is an optional field. For more information, see the Condition section of this topic.
    • Condition_operator: specifies the conditional operators. Different types of conditions support different conditional operators. For more information, see Policy elements.
    • Condition_key: specifies the condition keys.
    • Condition_value: specifies the condition values.

Action

ECS defines the values that you can use in the Action element of a policy statement. The following table describes the values.
  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • API operation: the API operation that you can call to perform the operation.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition key: the condition keys that are defined by the Alibaba Cloud service. The Condition key column does not list the common condition keys that are defined by Alibaba Cloud. For more information about the common condition keys, see Generic Condition Keyword.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
ActionsAPI operationAccess levelResource typeCondition keyAssociated operation
ecs:DescribeActivationsDescribeActivationsget
Activation
acs:ecs:{#regionId}:{#accountId}:activation/*
Activation
acs:ecs:{#regionId}:{#accountId}:activation/{#activationId}
NoneNone
ecs:DescribeSecurityGroupsDescribeSecurityGroupsget
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/*
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:tag
ecs:tag
ecs:tag
ecs:tag
None
ecs:RunCommandRunCommandupdate
All Resources
*
ecs:CommandRunAs
None
ecs:DescribeHpcClustersDescribeHpcClustersget
HpcCluster
acs:ecs:{#regionId}:{#accountId}:hpc/*
NoneNone
ecs:DescribeImagePipelineExecutionsDescribeImagePipelineExecutionsget
All Resources
*
NoneNone
ecs:DescribeInstanceHistoryEventsDescribeInstanceHistoryEventsget
All Resources
*
NoneNone
ecs:DescribeInstancesFullStatusDescribeInstancesFullStatusget
All Resources
*
NoneNone
ecs:ListTagResourcesListTagResourcesget
All Resources
*
NoneNone
ecs:DescribePriceDescribePriceget
All Resources
*
NoneNone
ecs:DescribePrefixListAttributesDescribePrefixListAttributesget
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
NoneNone
ecs:SendFileSendFileupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifySecurityGroupEgressRuleModifySecurityGroupEgressRuleupdate
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:tag
ecs:tag
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
None
ecs:PurchaseReservedInstancesOfferingPurchaseReservedInstancesOfferingcreate
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/*
NoneNone
ecs:StopInvocationStopInvocationupdate
All Resources
*
NoneNone
ecs:TagResourcesTagResourcescreate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#SnapshotPolicyId}
NoneNone
ecs:DescribeRenewalPriceDescribeRenewalPriceget
All Resources
*
NoneNone
ecs:CreateSecurityGroupCreateSecurityGroupcreate
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/*
VPC
acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
NoneNone
ecs:DeleteLaunchTemplateVersionDeleteLaunchTemplateVersiondelete
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
NoneNone
ecs:DescribeReservedInstancesDescribeReservedInstancesget
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/*
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
NoneNone
ecs:UnassignPrivateIpAddressesUnassignPrivateIpAddressesdelete
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
NoneNone
ecs:CreateAutoProvisioningGroupCreateAutoProvisioningGroupcreate
All Resources
*
NoneNone
ecs:ModifySecurityGroupPolicyModifySecurityGroupPolicyupdate
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
NoneNone
ecs:RevokeSecurityGroupRevokeSecurityGroupdelete
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:tag
ecs:tag
ecs:tag
None
ecs:CopyImageCopyImageupdate
All Resources
*
NoneNone
ecs:ModifySecurityGroupRuleModifySecurityGroupRuleupdate
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
None
ecs:UntagResourcesUntagResourcesdelete
All Resources
*
NoneNone
ecs:ModifyDiskChargeTypeModifyDiskChargeTypeupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeDedicatedHostClustersDescribeDedicatedHostClustersget
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/*
NoneNone
ecs:CreatePrefixListCreatePrefixListcreate
All Resources
*
NoneNone
ecs:ReportInstancesStatusReportInstancesStatusget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyInstanceDeploymentModifyInstanceDeploymentupdate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeSnapshotsUsageDescribeSnapshotsUsageget
All Resources
*
NoneNone
ecs:DescribePrefixListsDescribePrefixListsget
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
NoneNone
ecs:ModifyInstanceAutoReleaseTimeModifyInstanceAutoReleaseTimeupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:JoinResourceGroupJoinResourceGroupupdate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#SnapshotId}
NoneNone
ecs:ModifySecurityGroupAttributeModifySecurityGroupAttributeupdate
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
NoneNone
ecs:ModifyDedicatedHostClusterAttributeModifyDedicatedHostClusterAttributeupdate
ddhcluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
NoneNone
ecs:DescribeDiskMonitorDataDescribeDiskMonitorDataget
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NoneNone
ecs:DetachNetworkInterfaceDetachNetworkInterfaceupdate
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyReservedInstanceAttributeModifyReservedInstanceAttributeupdate
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
NoneNone
ecs:ModifyDiskSpecModifyDiskSpecupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NoneNone
ecs:ModifyLaunchTemplateDefaultVersionModifyLaunchTemplateDefaultVersionupdate
All Resources
*
NoneNone
ecs:ModifyDedicatedHostAutoRenewAttributeModifyDedicatedHostAutoRenewAttributeupdate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
NoneNone
ecs:ModifyInvocationAttributeModifyInvocationAttributeupdate
All Resources
*
NoneNone
ecs:DeleteDeploymentSetDeleteDeploymentSetdelete
DeploymentSet
acs:ecs:{#regionid}:{#accountId}:deploymentset/{#deploymentSetId}
NoneNone
ecs:CreateImagePipelineCreateImagePipelinecreate
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/*
NoneNone
ecs:ModifyPrepayInstanceSpecModifyPrepayInstanceSpecupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DeleteInstanceDeleteInstancedelete
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:PurchaseElasticityAssurancePurchaseElasticityAssuranceupdate
All Resources
*
NoneNone
ecs:RenewInstanceRenewInstanceupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeReservedInstanceAutoRenewAttributeDescribeReservedInstanceAutoRenewAttributeget
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#ReservedInstanceId}
NoneNone
ecs:DescribeClassicLinkInstancesDescribeClassicLinkInstancesget
All Resources
*
NoneNone
ecs:AuthorizeSecurityGroupEgressAuthorizeSecurityGroupEgresscreate
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
None
ecs:ConvertNatPublicIpToEipConvertNatPublicIpToEipupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DeregisterManagedInstanceDeregisterManagedInstanceupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeEniMonitorDataDescribeEniMonitorDataget
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CreateDedicatedHostClusterCreateDedicatedHostClustercreate
All Resources
*
NoneNone
ecs:DescribeAutoSnapshotPolicyEXDescribeAutoSnapshotPolicyExget
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/*
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#snapshotpolicyId}
NoneNone
ecs:ModifyManagedInstanceModifyManagedInstanceupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeInstanceVncUrlDescribeInstanceVncUrlget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CreateKeyPairCreateKeyPaircreate
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/*
NoneNone
ecs:DescribeCapacityReservationsDescribeCapacityReservationsget
CapacityReservation
acs:ecs:{#regionId}:{#accountId}:capacityreservation/*
NoneNone
ecs:CancelSimulatedSystemEventsCancelSimulatedSystemEventsupdate
All Resources
*
NoneNone
ecs:DescribeInstanceAttributeDescribeInstanceAttributeget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:AttachKeyPairAttachKeyPairupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
NoneNone
ecs:CreateNetworkInterfaceCreateNetworkInterfacecreate
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/*
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
VSwitch
acs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
vpc:IsDefaultVSwitch
vpc:IsDefaultVpc
vpc:VPC
vpc:tag
vpc:tag
vpc:tag
None
ecs:AllocateDedicatedHostsAllocateDedicatedHostscreate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/*
NoneNone
ecs:ModifyPrefixListModifyPrefixListupdate
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
NoneNone
ecs:DescribeSnapshotPackageDescribeSnapshotPackageget
All Resources
*
NoneNone
ecs:RebootInstancesRebootInstancesupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ListPluginStatusListPluginStatusget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
NoneNone
ecs:DeleteInstancesDeleteInstancesdelete
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:RevokeSecurityGroupEgressRevokeSecurityGroupEgressdelete
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:tag
ecs:tag
ecs:tag
None
ecs:StopInstanceStopInstanceupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyDedicatedHostAutoReleaseTimeModifyDedicatedHostAutoReleaseTimeupdate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
NoneNone
ecs:CreateCommandCreateCommandcreate
Command
acs:ecs:{#regionId}:{#accountId}:command/*
NoneNone
ecs:ModifyCloudAssistantSettingsModifyCloudAssistantSettingsupdate
ServiceSettings
acs:ecs:{#regionId}:{#accountId}:servicesettings/{#servicesettingId}
NoneNone
ecs:ModifyElasticityAssuranceModifyElasticityAssuranceupdate
All Resources
*
NoneNone
ecs:DeleteImagePipelineDeleteImagePipelinedelete
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
NoneNone
ecs:ModifyImageSharePermissionModifyImageSharePermissionupdate
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:DeleteNetworkInterfaceDeleteNetworkInterfacedelete
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
NoneNone
ecs:DescribeCloudAssistantSettingsDescribeCloudAssistantSettingslist
ServiceSettings
acs:ecs:{#regionId}:{#accountId}:servicesettings/{#servicesettingId}
NoneNone
ecs:DescribeNetworkInterfaceAttributeDescribeNetworkInterfaceAttributeget
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
NoneNone
ecs:DeleteDiagnosticMetricSetsDeleteDiagnosticMetricSetsdelete
All Resources
*
NoneNone
ecs:StartInstanceStartInstanceupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ExportImageExportImageupdate
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:DescribeTerminalSessionsDescribeTerminalSessionslist
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
NoneNone
ecs:AuthorizeSecurityGroupAuthorizeSecurityGroupcreate
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
None
ecs:ModifyInstanceAutoRenewAttributeModifyInstanceAutoRenewAttributeupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeImageSupportInstanceTypesDescribeImageSupportInstanceTypesget
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:ModifyHpcClusterAttributeModifyHpcClusterAttributeupdate
All Resources
*
NoneNone
ecs:DescribeInstanceStatusDescribeInstanceStatusget
All Resources
*
NoneNone
ecs:DeleteDiagnosticReportsDeleteDiagnosticReportsdelete
All Resources
*
NoneNone
ecs:GetInstanceScreenshotGetInstanceScreenshotget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ImportImageImportImageupdate
All Resources
*
NoneNone
ecs:DescribeManagedInstancesDescribeManagedInstancesget
All Resources
*
NoneNone
ecs:DeleteSecurityGroupDeleteSecurityGroupdelete
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
NoneNone
ecs:ModifyInstanceAttributeModifyInstanceAttributeupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#SecurityGroupId}
ecs:tag
ecs:tag
ecs:tag
ecs:tag
None
ecs:CreateActivationCreateActivationcreate
Activation
acs:ecs:{#regionId}:{#accountId}:activation/*
NoneNone
ecs:DescribeAccountAttributesDescribeAccountAttributesget
All Resources
*
NoneNone
ecs:DeleteActivationDeleteActivationdelete
activation
acs:ecs:{#regionId}:{#accountId}:activation/{#activationId}
NoneNone
ecs:DeleteImageComponentDeleteImageComponentdelete
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/{#imagecomponentId}
NoneNone
ecs:DescribeImagePipelinesDescribeImagePipelinesget
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/*
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
NoneNone
ecs:DescribeImageFromFamilyDescribeImageFromFamilyget
All Resources
*
NoneNone
ecs:CreateDiagnosticMetricSetCreateDiagnosticMetricSetcreate
All Resources
*
NoneNone
ecs:ModifyInstanceMaintenanceAttributesModifyInstanceMaintenanceAttributesupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeImagesDescribeImagesget
Image
acs:ecs:{#regionId}:{#accountId}:image/*
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:DescribeDiagnosticReportsDescribeDiagnosticReportsget
All Resources
*
NoneNone
ecs:ModifyDiagnosticMetricSetModifyDiagnosticMetricSetupdate
All Resources
*
NoneNone
ecs:DeleteDedicatedHostClusterDeleteDedicatedHostClusterdelete
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
NoneNone
ecs:AttachInstanceRamRoleAttachInstanceRamRoleupdate
All Resources
*
NoneNone
ecs:RebootInstanceRebootInstanceupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeDiagnosticMetricsDescribeDiagnosticMetricsget
All Resources
*
NoneNone
ecs:CreateInstanceCreateInstancecreate
All Resources
*
vpc:VPC
vpc:IsDefaultVSwitch
vpc:IsDefaultVpc
ecs:IsDiskEncrypted
ecs:InstanceType
ecs:InstanceTypeFamily
ecs:ImageOwnerId
ecs:ImageSource
ecs:NotSpecifySecurityGroupId
None
ecs:DeleteKeyPairsDeleteKeyPairsdelete
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
NoneNone
ecs:DescribeDeploymentSetsDescribeDeploymentSetsget
DeploymentSet
acs:ecs:{#regionId}:{#accountId}:deploymentset/*
NoneNone
ecs:AssignPrivateIpAddressesAssignPrivateIpAddressescreate
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
NoneNone
ecs:CreateSimulatedSystemEventsCreateSimulatedSystemEventscreate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ReActivateInstancesReActivateInstancesupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ReleaseCapacityReservationReleaseCapacityReservationdelete
All Resources
*
NoneNone
ecs:ResetDiskResetDiskupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
NoneNone
ecs:DetachKeyPairDetachKeyPairupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
NoneNone
ecs:GetInstanceConsoleOutputGetInstanceConsoleOutputget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyInstanceMetadataOptionsModifyInstanceMetadataOptionsupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyCommandModifyCommandupdate
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
NoneNone
ecs:ModifyInstanceSpecModifyInstanceSpecupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeKeyPairsDescribeKeyPairsget
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/*
NoneNone
ecs:CreateDiagnosticReportCreateDiagnosticReportcreate
All Resources
*
NoneNone
ecs:ModifyNetworkInterfaceAttributeModifyNetworkInterfaceAttributeupdate
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
NoneNone
ecs:ModifyDeploymentSetAttributeModifyDeploymentSetAttributeupdate
DeploymentSet
acs:ecs:{#regionId}:{#accountId}:deploymentset/{#DeploymentSetId}
NoneNone
ecs:DeleteSnapshotDeleteSnapshotdelete
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
NoneNone
ecs:DescribeDiagnosticReportAttributesDescribeDiagnosticReportAttributesget
All Resources
*
NoneNone
ecs:ModifyAutoProvisioningGroupModifyAutoProvisioningGroupupdate
autoprovisioninggroup
acs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#autoprovisioninggroupId}
NoneNone
ecs:DescribeAutoProvisioningGroupInstancesDescribeAutoProvisioningGroupInstancesget
AutoProvisioningGroup
acs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#autoprovisioninggroupId}
NoneNone
ecs:ApplyAutoSnapshotPolicyApplyAutoSnapshotPolicyupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#snapshotpolicyId}
NoneNone
ecs:ModifyDedicatedHostsChargeTypeModifyDedicatedHostsChargeTypeupdate
All Resources
*
NoneNone
ecs:DescribeInstanceRamRoleDescribeInstanceRamRoleget
All Resources
*
NoneNone
ecs:ModifyImageAttributeModifyImageAttributeupdate
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:DescribeLaunchTemplatesDescribeLaunchTemplatesget
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/*
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
NoneNone
ecs:CancelTaskCancelTaskupdate
All Resources
*
NoneNone
ecs:DescribeSecurityGroupAttributeDescribeSecurityGroupAttributeget
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:tag
None
ecs:StartInstancesStartInstancesupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeSecurityGroupReferencesDescribeSecurityGroupReferencesget
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
NoneNone
ecs:DescribeUserDataDescribeUserDataget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyAutoSnapshotPolicyExModifyAutoSnapshotPolicyExupdate
All Resources
*
NoneNone
ecs:DescribeInstanceAttachmentAttributesDescribeInstanceAttachmentAttributesget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeNetworkInterfacesDescribeNetworkInterfacesget
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
NoneNone
ecs:RedeployDedicatedHostRedeployDedicatedHostupdate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
NoneNone
ecs:DetachInstanceRamRoleDetachInstanceRamRoleupdate
All Resources
*
NoneNone
ecs:DescribeDiskEncryptionByDefaultStatusDescribeDiskEncryptionByDefaultStatusnone
All Resources
*
NoneNone
ecs:AttachClassicLinkVpcAttachClassicLinkVpcupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
VPC
acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
vpc:tag
None
ecs:DescribeInstanceMaintenanceAttributesDescribeInstanceMaintenanceAttributesget
All Resources
*
NoneNone
ecs:DeleteCommandDeleteCommanddelete
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
NoneNone
ecs:ImportKeyPairImportKeyPaircreate
All Resources
*
NoneNone
ecs:ReInitDiskReInitDiskupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NoneNone
ecs:PurchaseStorageCapacityUnitPurchaseStorageCapacityUnitcreate
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/*
NoneNone
ecs:CreateImageCreateImagecreate
Image
acs:ecs:{#regionId}:{#accountId}:image/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
NoneNone
ecs:DescribeLaunchTemplateVersionsDescribeLaunchTemplateVersionsget
All Resources
*
NoneNone
ecs:StartTerminalSessionStartTerminalSessionupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:AcceptInquiredSystemEventAcceptInquiredSystemEventupdate
All Resources
*
NoneNone
ecs:DeleteImageDeleteImagedelete
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:DescribeCommandsDescribeCommandsget
Command
acs:ecs:{#regionId}:{#accountId}:command/*
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
NoneNone
ecs:RenewElasticityAssurancesRenewElasticityAssurancescreate
ElasticityAssurance
acs:ecs:{#regionId}:{#accountId}:elasticityassurance/{#ElasticityAssuranceId}
NoneNone
ecs:DescribeResourcesModificationDescribeResourcesModificationget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CreateHpcClusterCreateHpcClustercreate
HpcCluster
acs:ecs:{#regionId}:{#accountId}:hpc/*
NoneNone
ecs:RenewReservedInstancesRenewReservedInstancescreate
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#ReservedInstanceId}
NoneNone
ecs:DescribeSnapshotMonitorDataDescribeSnapshotMonitorDataget
All Resources
*
NoneNone
ecs:ModifyInstanceVncPasswdModifyInstanceVncPasswdupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:InvokeCommandInvokeCommandupdate
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:CommandRunAs
None
ecs:DescribeDisksFullStatusDescribeDisksFullStatusget
All Resources
*
NoneNone
ecs:DeleteAutoSnapshotPolicyDeleteAutoSnapshotPolicydelete
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#SnapshotPolicyId}
NoneNone
ecs:DescribeCapacityReservationInstancesDescribeCapacityReservationInstancesget
All Resources
*
NoneNone
ecs:DescribeElasticityAssuranceInstancesDescribeElasticityAssuranceInstancesget
All Resources
*
NoneNone
ecs:DeleteSnapshotGroupDeleteSnapshotGroupdelete
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#snapshotgroupId}
NoneNone
ecs:DescribeSnapshotLinksDescribeSnapshotLinksget
All Resources
*
NoneNone
ecs:JoinSecurityGroupJoinSecurityGroupupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
NoneNone
ecs:DeleteAutoProvisioningGroupDeleteAutoProvisioningGroupdelete
AutoProvisioningGroup
acs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#autoprovisioninggroupId}
NoneNone
ecs:DescribeStorageCapacityUnitsDescribeStorageCapacityUnitsget
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/*
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/{#scuId}
NoneNone
ecs:ModifyReservedInstancesModifyReservedInstancesupdate
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
NoneNone
ecs:DescribeDedicatedHostAutoRenewDescribeDedicatedHostAutoRenewget
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
NoneNone
ecs:StartImagePipelineExecutionStartImagePipelineExecutionupdate
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
NoneNone
ecs:ModifySnapshotAttributeModifySnapshotAttributeupdate
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
NoneNone
ecs:DescribeElasticityAssurancesDescribeElasticityAssurancesget
ElasticityAssurance
acs:ecs:{#regionId}:{#accountId}:elasticityassurance/*
NoneNone
ecs:ReplaceSystemDiskReplaceSystemDiskupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CancelCopyImageCancelCopyImageupdate
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:DescribeDiagnosticMetricSetsDescribeDiagnosticMetricSetsget
All Resources
*
NoneNone
ecs:DescribeTaskAttributeDescribeTaskAttributeget
All Resources
*
NoneNone
ecs:CancelAutoSnapshotPolicyCancelAutoSnapshotPolicyupdate
All Resources
*
NoneNone
ecs:ModifyInstanceAttachmentAttributesModifyInstanceAttachmentAttributesupdate
All Resources
*
NoneNone
ecs:CreateAutoSnapshotPolicyCreateAutoSnapshotPolicycreate
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/*
NoneNone
ecs:ModifyInstanceNetworkSpecModifyInstanceNetworkSpecupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CancelImagePipelineExecutionCancelImagePipelineExecutionupdate
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
NoneNone
ecs:DescribeInstanceMonitorDataDescribeInstanceMonitorDataget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeInvocationResultsDescribeInvocationResultsget
All Resources
*
NoneNone
ecs:AttachNetworkInterfaceAttachNetworkInterfaceupdate
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CreateLaunchTemplateCreateLaunchTemplatecreate
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/*
NoneNone
ecs:DeletePrefixListDeletePrefixListdelete
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
NoneNone
ecs:DescribeInvocationsDescribeInvocationsget
All Resources
*
NoneNone
ecs:AssignIpv6AddressesAssignIpv6Addressescreate
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
NoneNone
ecs:DescribeCloudAssistantStatusDescribeCloudAssistantStatusget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CreateLaunchTemplateVersionCreateLaunchTemplateVersioncreate
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
NoneNone
ecs:LeaveSecurityGroupLeaveSecurityGroupupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
NoneNone
ecs:DescribePrefixListAssociationsDescribePrefixListAssociationsget
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
NoneNone
ecs:CreateImageComponentCreateImageComponentcreate
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/*
NoneNone
ecs:DescribeImageComponentsDescribeImageComponentsget
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/*
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/{#imagecomponentId}
NoneNone
ecs:DescribeDisksDescribeDiskslist
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/*
NoneNone
ecs:DetachClassicLinkVpcDetachClassicLinkVpcupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
VPC
acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
NoneNone
ecs:CreateSnapshotCreateSnapshotcreate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/*
NoneNone
ecs:DescribeSendFileResultsDescribeSendFileResultsget
All Resources
*
NoneNone
ecs:DeleteHpcClusterDeleteHpcClusterdelete
All Resources
*
NoneNone
ecs:DisableActivationDisableActivationupdate
Activation
acs:ecs:{#regionId}:{#accountId}:activation/{#ActivationId}
NoneNone
ecs:ReleaseDedicatedHostReleaseDedicatedHostdelete
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
NoneNone
ecs:DetachDiskDetachDiskupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeTasksDescribeTasksget
All Resources
*
NoneNone
ecs:CreateSnapshotGroupCreateSnapshotGroupcreate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyCapacityReservationModifyCapacityReservationupdate
All Resources
*
NoneNone
ecs:RunInstancesRunInstancescreate
All Resources
*
vpc:IsDefaultVSwitch
vpc:IsDefaultVpc
vpc:VPC
ecs:IsDiskEncrypted
ecs:InstanceTypeFamily
ecs:InstanceType
ecs:ImageOwnerId
ecs:ImageSource
ecs:NotSpecifySecurityGroupId
None
ecs:ModifyDiskAttributeModifyDiskAttributeupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NoneNone
ecs:StopInstancesStopInstancesupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:AllocatePublicIpAddressAllocatePublicIpAddresscreate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:AttachDiskAttachDiskupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CreateDeploymentSetCreateDeploymentSetcreate
All Resources
*
NoneNone
ecs:DeleteLaunchTemplateDeleteLaunchTemplatedelete
All Resources
*
NoneNone
ecs:DescribeAutoProvisioningGroupHistoryDescribeAutoProvisioningGroupHistoryget
All Resources
*
NoneNone
ecs:DescribeSnapshotsDescribeSnapshotsget
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/*
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
NoneNone
ecs:DescribeBandwidthLimitationDescribeBandwidthLimitationget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:ModifyStorageCapacityUnitAttributeModifyStorageCapacityUnitAttributeupdate
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/{#scuId}
NoneNone
ecs:ModifyDedicatedHostAttributeModifyDedicatedHostAttributeupdate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
NoneNone
ecs:DescribeAutoProvisioningGroupsDescribeAutoProvisioningGroupsget
All Resources
*
NoneNone
ecs:ModifySnapshotGroupModifySnapshotGroupupdate
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#SnapshotGroupId}
NoneNone
ecs:DescribeImageSharePermissionDescribeImageSharePermissionget
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
NoneNone
ecs:DescribeInstanceModificationPriceDescribeInstanceModificationPriceget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
NoneNone
ecs:ResizeDiskResizeDiskupdate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NoneNone
ecs:DescribeInstanceAutoRenewAttributeDescribeInstanceAutoRenewAttributeget
All Resources
*
NoneNone
ecs:UnassignIpv6AddressesUnassignIpv6Addressesdelete
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
NoneNone
ecs:CreateDiskCreateDiskcreate
Disk
acs:ecs:{#regionId}:{#accountId}:disk/*
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
ecs:IsDiskEncrypted
None
ecs:DeleteDiskDeleteDiskdelete
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NoneNone
ecs:RedeployInstanceRedeployInstanceupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeDedicatedHostsDescribeDedicatedHostsget
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/*
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
NoneNone
ecs:RenewDedicatedHostsRenewDedicatedHostsupdate
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
NoneNone
ecs:DescribeInstancesDescribeInstancesget
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ResourceOwner
None
ecs:CopySnapshotCopySnapshotcreate
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
NoneNone
ecs:InstallCloudAssistantInstallCloudAssistantupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:DescribeSnapshotGroupsDescribeSnapshotGroupsget
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/*
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#snapshotgroupId}
NoneNone
ecs:ModifyReservedInstanceAutoRenewAttributeModifyReservedInstanceAutoRenewAttributeupdate
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#ReservedInstanceId}
NoneNone
ecs:ModifyInstanceChargeTypeModifyInstanceChargeTypeupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
NoneNone
ecs:CreateElasticityAssuranceCreateElasticityAssurancecreate
ElasticityAssurance
acs:ecs:{#regionId}:{#accountId}:elasticityassurance/*
NoneNone
ecs:ModifyInstanceVpcAttributeModifyInstanceVpcAttributeupdate
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
VSwitch
acs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
vpc:tag
vpc:VPC
None
ecs:CreateCapacityReservationCreateCapacityReservationcreate
CapacityReservation
acs:ecs:{#regionId}:{#accountId}:capacityreservation/*
NoneNone

Resource

ECS defines the values that you can use in the Resource. You can attach the policy to a RAM user or a RAM role so that the RAM user or the RAM role can perform a specific operation on a specific resource. The ARN is the unique identifier of the resource on Alibaba Cloud. Take note of the following items:
  • {#}indicates a variable. {#} must be replaced with an actual value. For example, {#ramcode} must be replaced with the actual code of an Alibaba Cloud service in RAM.
  • An asterisk (*) is used as a wildcard. Examples:
    • {#resourceType} is set to *, all resources are specified.
    • {#regionId} is set to *, all regions are specified.
    • {#accountId} is set to *, all Alibaba Cloud accounts are specified.
Resource typeARN
Activationacs:ecs:{#regionId}:{#accountId}:activation/*
Activationacs:ecs:{#regionId}:{#accountId}:activation/{#activationId}
SecurityGroupacs:ecs:{#regionId}:{#accountId}:securitygroup/*
SecurityGroupacs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
Commandacs:ecs:{#regionId}:{#accountId}:command/*
Instanceacs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
HpcClusteracs:ecs:{#regionId}:{#accountId}:hpc/*
DedicatedHostacs:ecs:{#regionId}:{#accountId}:ddh/*
DedicatedHostClusteracs:ecs:{#regionId}:{#accountId}:ddhcluster/*
Diskacs:ecs:{#regionId}:{#accountId}:disk/*
Diskacs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NetworkInterfaceacs:ecs:{#regionId}:{#accountId}:eni/*
NetworkInterfaceacs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Imageacs:ecs:{#regionId}:{#accountId}:image/*
Imageacs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instanceacs:ecs:{#regionId}:{#accountId}:instance/*
KeyPairacs:ecs:{#regionId}:{#accountId}:keypair/*
Snapshotacs:ecs:{#regionId}:{#accountId}:snapshot/*
Snapshotacs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
AutoSnapshotPolicyacs:ecs:{#regionId}:{#accountId}:snapshotpolicy/*
ImagePipelineacs:ecs:{#regionId}:{#accountId}:imagepipeline/*
ImagePipelineacs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
DedicatedHostacs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
KeyPairacs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
ReservedInstanceacs:ecs:{#regionId}:{#accountId}:reservedinstance/*
ReservedInstanceacs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
PrefixListacs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
LaunchTemplateacs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
AutoSnapshotPolicyacs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#SnapshotPolicyId}
VPCacs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
Fleetacs:ecs:{#regionId}:{#accountId}:fleet/*
DeploymentSetacs:ecs:{#regionId}:{#accountId}:deploymentset/{#DeploymentSetId}
DedicatedHostClusteracs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
ddhclusteracs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
LaunchTemplateacs:ecs:{#regionId}:{#accountId}:launchtemplate/*
Invocationacs:ecs:{#regionId}:{#accountId}:invocation/{#InvocationId}
ElasticityAssuranceacs:ecs:{#regionId}:{#accountId}:elasticityassurance/*
Volumeacs:ecs:{#regionId}:{#accountId}:volume/{#volumeId}
ddhclusteracs:ecs:{#regionId}:{#accountId}:ddhcluster/*
CapacityReservationacs:ecs:{#regionId}:{#accountId}:capacityreservation/*
KeyPairacs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
VSwitchacs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
ServiceSettingsacs:ecs:{#regionId}:{#accountId}:servicesettings/{#servicesettingId}
activationacs:ecs:{#regionId}:{#accountId}:activation/{#activationId}
ImageComponentacs:ecs:{#regionId}:{#accountId}:imagecomponent/{#imagecomponentId}
Roleacs:ram:*:{#accountId}:role/{#roleName}
VSwitchacs:vpc:{#regionId}:{#accountId}:vswitch/*
DeploymentSetacs:ecs:{#regionId}:{#accountId}:deploymentset/*
snapshotpolicyacs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#snapshotpolicyId}
Commandacs:ecs:{#regionId}:{#accountId}:command/{#commandId}
autoprovisioninggroupacs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#autoprovisioninggroupId}
AutoProvisioningGroupacs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#autoprovisioninggroupId}
StorageCapacityUnitacs:ecs:{#regionId}:{#accountId}:scu/*
ElasticityAssuranceacs:ecs:{#regionId}:{#accountId}:elasticityassurance/{#ElasticityAssuranceId}
Demandacs:ecs:*:{#accountId}:*
AutoSnapshotPolicyacs:ecs:{#regionId}:{#accountId}:autosnapshotpolicy/*
SnapshotGroupacs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#snapshotgroupId}
StorageCapacityUnitacs:ecs:{#regionId}:{#accountId}:scu/{#scuId}
ImageComponentacs:ecs:{#regionId}:{#accountId}:imagecomponent/*
Demandacs:ecs:{#regionId}:{#accountId}:ecsdemand/*
AutoProvisioningGroupacs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/*
Volumeacs:ecs:{#regionId}:{#accountId}:volume/*
SnapshotGroupacs:ecs:{#regionId}:{#accountId}:snapshotgroup/*
BandwidthPackageacs:vpc:{#regionId}:{#accountId}:bandwidthpackage/{#BandwidthPackageId}
VirtualBorderRouteracs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
Addressacs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
VirtualBorderRouteracs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
RouterInterfaceacs:vpc:{#regionId}:{#accountId}:routerinterface/*
RouterInterfaceacs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
ForwardTableacs:vpc:{#regionId}:{#accountId}:forwardtable/{#ForwardTableId}
NatGatewayacs:vpc:{#regionId}:{#accountId}:natgateway/{#natgatewayid}
VRouteracs:vpc:{#regionId}:{#accountId}:vrouter/{#VRouterId}
PhysicalConnectionacs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
RouteTableacs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
BandwidthPackageacs:vpc:{#regionId}:{#accountId}:bandwidthpackage/*
HaVipacs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}
Instanceacs:vpc:{#regionId}:{#accountId}:instance/{#InstanceId}
NatGatewayacs:vpc:{#regionId}:{#accountId}:natgateway/*
HaVipacs:vpc:{#regionId}:{#accountId}:havip/*
VRouteracs:vpc:{#regionId}:{#accountId}:vrouter/*
Associationacs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}
PhysicalConnectionacs:vpc:{#regionId}:{#accountId}:physicalconnection/*
VirtualBorderRouteracs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/*
VPCacs:vpc:{#regionId}:{#accountId}:vpc/*
Addressacs:vpc:{#regionId}:{#accountId}:eip/*

Condition

ECS defines the values that you can use in the Condition element of a policy statement. The following table describes the values. The following table describes the service-specific condition keys. The common condition keys that are defined by Alibaba Cloud also apply to ECS. For more information about the common condition keys, see Generic Condition Keyword.
The data type determines the conditional operators that you can use to compare the value in a request with the value in a policy statement. You must use conditional operators that are supported by the data type. Otherwise, you cannot compare the value in the request with the value in the policy statement. In this case, the authorization is invalid. For more information about the conditional operators that are supported by each data type, see Policy elements.
Condition keyDescriptionData type
vpc:VPCVPC InformationString
vpc:IsDefaultVSwitchWhether it is the default VSwitch and whether the default VSwitch can be usedBoolean
vpc:IsDefaultVpcWhether it is the default VPCBoolean
ecs:IsDiskEncryptedWhether it is an encrypted data diskString
ecs:InstanceTypeInstance specificationsString
ecs:InstanceTypeFamilyinstance specification familyString
ecs:ImagePlatformOperating system type of the imageString
ecs:ImageSourceImage SourceString
ecs:CommandRunAsUser in the operating system that executes cloud assistant commandsString
ecs:IsSystemDiskEncryptedWhether it is an encryption system diskString
ecs:ImageOwnerIdOwner UID of the image.String
ecs:AssociatePublicIpAddressWhether to support the allocation of public network IP in the process of resource creation and change, that is, whether to allow the operation of resources to make the public network bandwidth greater than 0.Boolean
ecs:PasswordCustomizedWhether a custom password is usedBoolean
ecs:PasswordInheritWhether the instance inherits the image password.Boolean
ecs:SecurityEnhancementStrategyWhether to open security reinforcement.String
ecs:SecurityHardeningModeWhether to enforce hardened mode (IMDSv2) when accessing instance metadataBoolean
vpc:CreateDefaultVpcWhether a default VPC can be createdBoolean
ecs:SecurityGroupIpProtocolsTransport layer protocol with security group openString
ecs:SecurityGroupSourceCidrIpsThe source IPv4 CIDR segment of the security group that sets access permissionsString
ecs:NotSpecifySecurityGroupIdWhether the security group ID is not specifiedBoolean

What to do next

You can create a custom policy and attach the policy to a RAM user, RAM user group, or RAM role. For more information, see the following topics: