AliyunServiceRolePolicyForECAgent 是专用于服务关联角色的授权策略,会在创建服务关联角色 AliyunServiceRoleForECAgent 时自动授权,以允许服务关联角色代您访问其他云服务。本策略由对应的阿里云服务按需更新,请勿将本策略授权给服务关联角色之外的 RAM 身份使用。
策略详情
类型:系统策略
创建时间:2026-07-27 19:58:55
更新时间:2026-11-12 10:27:05
当前版本:v8
策略内容
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:CreateDiagnosticReport",
"ecs:AcceptInquiredSystemEvent",
"ecs:DescribeAccountAttributes",
"ecs:DescribeActivations",
"ecs:DescribeAutoProvisioningGroupHistory",
"ecs:DescribeAutoProvisioningGroupInstances",
"ecs:DescribeAutoProvisioningGroups",
"ecs:DescribeAutoSnapshotPolicyAssociations",
"ecs:DescribeAutoSnapshotPolicyEx",
"ecs:DescribeAvailableResource",
"ecs:DescribeBandwidthLimitation",
"ecs:DescribeBandwidthPackages",
"ecs:DescribeCapacityReservationInstances",
"ecs:DescribeCapacityReservations",
"ecs:DescribeClassicLinkInstances",
"ecs:DescribeCloudAssistantSettings",
"ecs:DescribeCloudAssistantStatus",
"ecs:DescribeCommands",
"ecs:DescribeDedicatedHostAutoRenew",
"ecs:DescribeDedicatedHostClusters",
"ecs:DescribeDedicatedHosts",
"ecs:DescribeDedicatedHostTypes",
"ecs:DescribeDeploymentSets",
"ecs:DescribeDeploymentSetSupportedInstanceTypeFamily",
"ecs:DescribeDiagnosticMetrics",
"ecs:DescribeDiagnosticMetricSets",
"ecs:DescribeDiagnosticReportAttributes",
"ecs:DescribeDiagnosticReports",
"ecs:DescribeDiskDefaultKMSKeyId",
"ecs:DescribeDiskMonitorData",
"ecs:DescribeDisks",
"ecs:DescribeDisksFullStatus",
"ecs:DescribeElasticityAssuranceAutoRenewAttribute",
"ecs:DescribeElasticityAssuranceInstances",
"ecs:DescribeElasticityAssurances",
"ecs:DescribeEniMonitorData",
"ecs:DescribeHpcClusters",
"ecs:DescribeImageComponents",
"ecs:DescribeImageFromFamily",
"ecs:DescribeImagePipelineExecutions",
"ecs:DescribeImagePipelines",
"ecs:DescribeImages",
"ecs:DescribeImageSharePermission",
"ecs:DescribeImageSupportInstanceTypes",
"ecs:DescribeInstanceAttachmentAttributes",
"ecs:DescribeInstanceAttribute",
"ecs:DescribeInstanceAutoRenewAttribute",
"ecs:DescribeInstanceHistoryEvents",
"ecs:DescribeInstanceMaintenanceAttributes",
"ecs:DescribeInstanceModificationPrice",
"ecs:DescribeInstanceMonitorData",
"ecs:DescribeInstanceRamRole",
"ecs:DescribeInstances",
"ecs:DescribeInstancesFullStatus",
"ecs:DescribeInstanceStatus",
"ecs:DescribeInstanceTypeFamilies",
"ecs:DescribeInstanceTypes",
"ecs:DescribeInstanceVncUrl",
"ecs:DescribeInvocationResults",
"ecs:DescribeInvocations",
"ecs:DescribeKeyPairs",
"ecs:DescribeLaunchTemplates",
"ecs:DescribeLaunchTemplateVersions",
"ecs:DescribeLockedSnapshots",
"ecs:DescribeManagedInstances",
"ecs:DescribeNetworkInterfaceAttribute",
"ecs:DescribeNetworkInterfacePermissions",
"ecs:DescribeNetworkInterfaces",
"ecs:DescribePlanMaintenanceWindows",
"ecs:DescribePortRangeListAssociations",
"ecs:DescribePortRangeListEntries",
"ecs:DescribePortRangeLists",
"ecs:DescribePrefixListAssociations",
"ecs:DescribePrefixListAttributes",
"ecs:DescribePrefixLists",
"ecs:DescribePrice",
"ecs:DescribeRecommendInstanceType",
"ecs:DescribeRegions",
"ecs:DescribeRenewalPrice",
"ecs:DescribeReservedInstanceAutoRenewAttribute",
"ecs:DescribeReservedInstances",
"ecs:DescribeResourcesModification",
"ecs:DescribeSecurityGroupAttribute",
"ecs:DescribeSecurityGroupReferences",
"ecs:DescribeSecurityGroups",
"ecs:DescribeSendFileResults",
"ecs:DescribeSnapshotGroups",
"ecs:DescribeSnapshotLinks",
"ecs:DescribeSnapshotMonitorData",
"ecs:DescribeSnapshotPackage",
"ecs:DescribeSnapshots",
"ecs:DescribeSnapshotsUsage",
"ecs:DescribeStorageCapacityUnits",
"ecs:DescribeTaskAttribute",
"ecs:DescribeTasks",
"ecs:DescribeTerminalSessions",
"ecs:DescribeUserData",
"ecs:DescribeVscs",
"ecs:DescribeZones",
"ecs:GetInstanceConsoleOutput",
"ecs:GetInstanceScreenshot",
"ecs:ListPluginStatus",
"ecs:RunCommand",
"ecs:ListTagResources",
"ecs:ReportInstancesStatus"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cms:Describe*", "cms:Query*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"yundun-aegis:Describe*", "yundun-aegis:Get*",
"yundun-sas:Describe*", "yundun-sas:List*", "yundun-sas:Get*", "yundun-sas:Query*",
"yundun-sas:describeCloudVendorTrialConfig"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"slb:Describe*", "slb:List*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"nlb:Describe*", "nlb:List*", "nlb:Get*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"alb:List*", "alb:Get*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"resourcecenter:ExecuteSQLQuery",
"resourcecenter:GetResourceType"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"vpc:Describe*", "vpc:List*", "vpc:Get*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "cms:QueryMetricLast",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cs:CreateSessionMessage",
"cs:InvokeAgent",
"cs:DescribeClusterVuls",
"cs:DescribeKubernetesVersionMetadata",
"cs:DescribeClusterEndpoints",
"cs:DescribePolicyInstancesStatus",
"cs:GetClusterCheckResult",
"cs:GetCostCheckItem",
"cs:CheckControlPlaneLogEnable",
"cs:GetClusterAuditProject",
"cs:DescribeClusterDetail",
"cs:CreateClusterDiagnosis",
"cs:CreateClusterInspectConfig",
"cs:GetClusterDiagnosisResult",
"cs:RunClusterInspect",
"cs:RunClusterCheck",
"cs:ListClusterInspectReports",
"cs:GetClusterInspectReportDetail",
"cs:ListClusterChecks",
"cs:DescribeClusterNodes",
"cs:DescribeClusterNodePools",
"cs:DescribeClusterNodePoolDetail",
"cs:DescribeClusterTasks",
"cs:DescribeTaskInfo",
"cs:ListAddons",
"cs:ListClusterAddonInstances",
"cs:GetClusters",
"cs:DescribeClustersV1",
"cs:DescribeClustersForRegion",
"cs:DescribeClusterResources",
"cs:DescribeClusterLogs",
"cs:DescribeClusterEvents",
"cs:DescribeEventsForRegion",
"cs:DescribeUserQuota",
"cs:DescribeRegions",
"cs:DescribeTemplates",
"cs:DescribeTemplateAttribute",
"cs:DescribeUserClusterNamespaces",
"cs:GetClusterCheck",
"cs:ListAutoRepairPolicies",
"cs:DescribeAutoRepairPolicy",
"cs:DescribeAddon",
"cs:GetClusterAddonInstance",
"cs:ListClusterAddonInstanceResources",
"cs:ListOperationPlansForRegion",
"cs:GetClusterInspectConfig",
"cs:GetClusterDiagnosisCheckItems",
"cs:DescribeNodePoolVuls",
"cs:DescribePolicies",
"cs:DescribePolicyDetails",
"cs:DescribePolicyInstances",
"cs:DescribePolicyGovernanceInCluster",
"cs:CheckControlPlaneLogEnable",
"cs:ListTagResources",
"cs:DescribeResourcesDeleteProtection"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"resourcemanager:ListResourceGroups"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ecagent:DescribeAgentService",
"ecagent:DescribeAgentCreditUsage"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"appflow:InvokeAction"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Condition": {
"StringEquals": {
"ram:ServiceName": "ecagent.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "selfservice.ecs.aliyuncs.com"
}
}
}
]
}相关文档
该文章对您有帮助吗?