AliyunServiceRolePolicyForAgentCore 是专用于服务关联角色的授权策略,会在创建服务关联角色 AliyunServiceRoleForAgentCore 时自动授权,以允许服务关联角色代您访问其他云服务。本策略由对应的阿里云服务按需更新,请勿将本策略授权给服务关联角色之外的 RAM 身份使用。
策略详情
类型:系统策略
创建时间:2026-08-18 10:55:55
更新时间:2026-12-02 11:37:26
当前版本:v35
策略内容
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"fc:GetFunction",
"fc:CreateFunction",
"fc:UpdateFunction",
"fc:DeleteFunction",
"fc:GetTrigger",
"fc:CreateTrigger",
"fc:UpdateTrigger",
"fc:DeleteTrigger"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ram:PassRole",
"Resource": "acs:ram::*:role/*",
"Condition": {
"StringEquals": {
"acs:Service": [
"fc.aliyuncs.com"
]
}
}
},
{
"Effect": "Allow",
"Action": "appflow:InvokeAction",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"schedulerx3:CreateCluster",
"schedulerx3:DeleteCluster",
"schedulerx3:ListClusters",
"schedulerx3:ListApps",
"schedulerx3:DeleteApp",
"schedulerx3:CreateJob",
"schedulerx3:UpdateJob",
"schedulerx3:DeleteJobs",
"schedulerx3:ListJobs",
"schedulerx3:CreateExecutorGroup",
"schedulerx3:DeleteExecutorGroup",
"schedulerx3:ListExecutorGroup",
"schedulerx3:UpdateExecutorGroup",
"schedulerx3:OperateEnableJobs",
"schedulerx3:OperateDisableJobs",
"schedulerx3:OperateExecuteJob",
"schedulerx3:ListJobExecutions",
"schedulerx3:GetJobExecution",
"schedulerx3:GetPageLog"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"agentidentity:CreateUserPool",
"agentidentity:DeleteUserPool",
"agentidentity:GetUserPool",
"agentidentity:UpdateLoginPreference",
"agentidentity:CreateUserPoolClient",
"agentidentity:UpdateUserPoolClient",
"agentidentity:DeleteUserPoolClient",
"agentidentity:ListUserPoolClients",
"agentidentity:DeleteClientSecret",
"agentidentity:CreateClientSecret",
"agentidentity:ListClientSecrets",
"agentidentity:CreateUser",
"agentidentity:UpdateUser",
"agentidentity:DeleteUser",
"agentidentity:GetUser",
"agentidentity:ListUsers",
"agentidentity:ListUserPools",
"agentidentity:SetUserPassword",
"agentidentity:SetSpecificIdentityProvider",
"agentidentity:GetUserPoolSyncJob",
"agentidentity:ListUserPoolSyncJobs",
"agentidentity:RunUserPoolSyncJob",
"agentidentity:ListWorkloadIdentities",
"agentidentity:CreateWorkloadIdentity",
"agentidentity:GetWorkloadIdentity",
"agentidentity:UpdateWorkloadIdentity",
"agentidentity:DeleteWorkloadIdentity",
"agentidentity:ListTokenVaults",
"agentidentity:GetTokenVault",
"agentidentity:CreateTokenVault",
"agentidentity:CreateAPIKeyCredentialProvider",
"agentidentity:ListAPIKeyCredentialProviders",
"agentidentity:GetAPIKeyCredentialProvider",
"agentidentity:UpdateAPIKeyCredentialProvider",
"agentidentity:DeleteAPIKeyCredentialProvider",
"agentidentity:AssumeRoleForWorkloadIdentity",
"agentidentity:GetPolicySet",
"agentidentity:CreatePolicySet",
"agentidentity:DeletePolicySet",
"agentidentity:GetPolicy",
"agentidentity:CreatePolicy",
"agentidentity:UpdatePolicy",
"agentidentity:DeletePolicy",
"agentidentity:GetGatewayPolicyConfig",
"agentidentity:AttachPolicySetToGateway",
"agentidentity:DetachPolicySetFromGateway",
"agentidentity:UpdateGatewayPolicyConfig",
"agentidentity:GetIdentityProviderSyncScope",
"agentidentity:ListIdentityProviderDepartments",
"agentidentity:GetSAMLServiceProviderInfo",
"agentidentity:SetSAMLIdentityProvider",
"agentidentity:EnableUserPoolSCIMProvisioning",
"agentidentity:GetUserPoolSCIMProvisioning",
"agentidentity:CreateUserPoolSCIMCredential",
"agentidentity:ListUserPoolSCIMCredentials",
"agentidentity:DeleteUserPoolSCIMCredential",
"agentidentity:GetSAMLIdentityProvider",
"agentidentity:DisableUserPoolSCIMProvisioning",
"agentidentity:CreateIdentityProvider",
"agentidentity:UpdateIdentityProvider",
"agentidentity:GetIdentityProvider",
"agentidentity:DeleteIdentityProvider",
"agentidentity:ListIdentityProviders",
"agentidentity:SetOIDCIdentityProvider",
"agentidentity:GetOIDCIdentityProvider",
"agentidentity:GetSystemResource",
"agentidentity:ListSystemResourceScopes",
"agentidentity:CreateResourceBinding",
"agentidentity:GetResourceBinding",
"agentidentity:UpdateResourceBinding",
"agentidentity:DeleteResourceBinding"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"agentidentitydata:GetWorkloadAccessToken",
"agentidentitydata:GetWorkloadAccessTokenForJWT",
"agentidentitydata:GetWorkloadAccessTokenByRefreshToken",
"agentidentitydata:GetResourceAPIKey",
"agentidentitydata:GetResourceOAuth2Token",
"agentidentitydata:EvaluatePolicy",
"agentidentitydata:SearchAuthorizedActions"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"agentcore:DeleteRegistryWorkspace"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"oss:PutBucket",
"oss:ListOssBucket",
"oss:ListBuckets",
"oss:GetBucketAcl",
"oss:PutBucketTagging",
"oss:GetBucketCors",
"oss:PutBucketCors",
"oss:GetBucketLifecycle",
"oss:PutBucketLifecycle"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cms:PutWorkspace",
"cms:CreateEntityStore",
"cms:CreateUmodel",
"cms:ListWorkspaces",
"cms:GetServiceObservability",
"cms:CreateServiceObservability",
"cms:ListPrometheusVirtualInstances",
"cms:GetPrometheusInstance",
"cms:ListPrometheusDashboards",
"cms:CreateTicket",
"cms:CreatePrometheusVirtualInstance"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"airegistry:GetNamespace",
"airegistry:ListNamespaces",
"airegistry:ListSkills",
"airegistry:Read",
"airegistry:Write",
"mse:ListSkills",
"airegistry:GetSkillDetail",
"mse:GetSkillDetail",
"airegistry:GetSkillVersionDetail",
"mse:GetSkillVersionDetail",
"airegistry:CreateSkillDraft",
"mse:CreateSkillDraft",
"airegistry:UpdateSkillDraft",
"mse:UpdateSkillDraft",
"airegistry:DeleteSkillDraft",
"mse:DeleteSkillDraft",
"airegistry:DownloadSkillVersion",
"mse:DownloadSkillVersion",
"airegistry:AttachSecurityGroupToVpcEndpoint",
"airegistry:ListVpcEndpointServiceZones",
"airegistry:CreateVpcEndpoint",
"airegistry:GetVpcEndpoint",
"airegistry:ListVpcEndpoints",
"airegistry:CreateNamespaceWithSource",
"airegistry:GetAgentSpecVersion",
"airegistry:DownloadAgentSpecViaOss",
"airegistry:DownloadSkillVersionViaOss",
"airegistry:GetAgentSpec"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"oss:GetObject",
"oss:GetObjectAcl",
"oss:GetObjectTagging",
"oss:DeleteObject",
"oss:DeleteObjectTagging",
"oss:PutObject",
"oss:PutObjectAcl",
"oss:PutObjectTagging",
"oss:RestoreObject",
"oss:ListObjects",
"oss:ListObjectVersions"
],
"Resource": [
"acs:oss:*:*:hiclaw-*",
"acs:oss:*:*:agentteams-*",
"acs:oss:*:*:agentcore-*"
]
},
{
"Effect": "Allow",
"Action": [
"ecs:BatchValidateSecurityGroup",
"ecs:DescribeSecurityGroupAttribute",
"ecs:DescribeSecurityGroupReferences",
"ecs:DescribeSecurityGroups",
"ecs:DescribeSecurityGroupSnapshotAttributes",
"ecs:ValidateSecurityGroup",
"ecs:DescribeSecurityGroupSnapshotPolicies",
"ecs:DescribeSecurityGroupSnapshots",
"ecs:DescribeSnapshotPolicyAssociatedSecurityGroups",
"ecs:DescribeNetworkInterfaces",
"ecs:DescribeNetworkInterfacePermissions",
"ecs:DescribeNetworkInterfaceAttribute",
"ecs:AddTags",
"ecs:DescribeEipAddresses",
"ecs:ListTagResources"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"ecs:CreateSecurityGroup"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:RequestTag/managedby": "agentteams"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:ApplySecurityGroupSnapshot",
"ecs:AssociateSecurityGroupSnapshotPolicy",
"ecs:AuthorizeSecurityGroup",
"ecs:AuthorizeSecurityGroupEgress",
"ecs:ConfigureSecurityGroupPermissions",
"ecs:CreateSecurityGroupSnapshotPolicy",
"ecs:DeleteSecurityGroup",
"ecs:DeleteSecurityGroupSnapshotPolicy",
"ecs:ModifySecurityGroupAttribute",
"ecs:ModifySecurityGroupEgressRule",
"ecs:ModifySecurityGroupPolicy",
"ecs:ModifySecurityGroupRule",
"ecs:ModifySecurityGroupSnapshotPolicy",
"ecs:RevokeSecurityGroup",
"ecs:RevokeSecurityGroupEgress",
"ecs:UnassociateSecurityGroupSnapshotPolicy"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:ResourceTag/managedby": "agentteams"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:CreateNetworkInterface",
"eflo:CreateElasticNetworkInterface",
"eflo:CreateHighDensityElasticNetworkInterface"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:RequestTag/creator": "terway-controller"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:DeleteNetworkInterface",
"ecs:CreateNetworkInterfacePermission",
"ecs:DeleteNetworkInterfacePermission",
"ecs:AttachNetworkInterface",
"ecs:DetachNetworkInterface",
"ecs:AssignPrivateIpAddresses",
"ecs:UnassignPrivateIpAddresses",
"ecs:AssignIpv6Addresses",
"ecs:UnassignIpv6Addresses",
"ecs:ModifyNetworkInterfaceAttribute",
"eflo:DeleteElasticNetworkInterface",
"eflo:AssignLeniPrivateIpAddress",
"eflo:UnassignLeniPrivateIpAddress",
"eflo:AttachElasticNetworkInterface",
"eflo:DetachElasticNetworkInterface",
"eflo:AttachHighDensityElasticNetworkInterface",
"eflo:DetachHighDensityElasticNetworkInterface",
"eflo:DeleteHighDensityElasticNetworkInterface"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:ResourceTag/creator": "terway-controller"
}
}
},
{
"Effect": "Allow",
"Action": [
"ecs:DescribeInstanceAttribute",
"ecs:DescribeInstances",
"eflo:GetElasticNetworkInterface",
"eflo:ListLeniPrivateIpAddresses",
"eflo:ListElasticNetworkInterfaces",
"eflo:ListHighDensityElasticNetworkInterfaces",
"eflo:GetHighDensityElasticNetworkInterface",
"eflo:DescribeNode",
"eflo:DescribeNodeType",
"eflo:GetNodeInfoForPod",
"vpc:DescribeVSwitches"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeVSwitchAttributes",
"vpc:DescribeVpcs"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"privatelink:ListVpcEndpoints",
"privatelink:ListVpcEndpointServicesByEndUser",
"privatelink:TagResources"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"privatelink:CreateVpcEndpoint"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:RequestTag/managedby": "agentcore"
}
}
},
{
"Effect": "Allow",
"Action": [
"privatelink:DeleteVpcEndpoint",
"privatelink:UpdateVpcEndpointAttribute",
"privatelink:GetVpcEndpointAttribute"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:ResourceTag/managedby": "agentcore"
}
}
},
{
"Effect": "Allow",
"Action": [
"cs:DescribeClusterInnerServiceKubeconfig",
"cs:RevokeClusterInnerServiceKubeconfig",
"cs:CreateCluster",
"cs:DescribeClusterDetail",
"cs:DeleteCluster",
"cs:InstallClusterAddons",
"cs:ListClusterAddonInstances",
"cr:ListInstanceEndpoint",
"cr:GetRepository",
"cr:GetRepoTagLayers"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "bss:ModifyInstance",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"log:OpenProductDataCollection",
"log:CloseProductDataCollection",
"log:GetProductDataCollection",
"log:GetLogStoreLogs",
"log:GetLogStore",
"log:CreateLogStore",
"log:GetIndex",
"log:CreateIndex",
"log:PostLogStoreLogs"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"agentteams:GetTeam",
"agentteams:ResetUserPassword"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"agentcore:ResetUserPassword"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ram:ListPoliciesForRole",
"Resource": [
"acs:ram:*:*:role/agentcore-oss-mount-role-*",
"acs:ram:*:*:role/AliyunAgentCoreWorkspace-*"
]
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "agentteams.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "privatelink.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "agentidentity.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "cloudmonitor.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "agentloop.aliyuncs.com"
}
}
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "agentcore.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"middlewarelens.log.aliyuncs.com",
"ai-lens.log.aliyuncs.com",
"securitylens.log.aliyuncs.com",
"storagelens.log.aliyuncs.com"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"agentcore:GetSkillDetail",
"agentcore:GetSkillVersionDetail",
"agentcore:DownloadSkillVersionViaOss",
"agentcore:PublishSkillVersionToRegistry",
"agentcore:ForcePublishSkillVersionToRegistry",
"agentcore:UpdateSkillLabelsToRegistry",
"agentcore:OnlineSkillToRegistry",
"agentcore:OfflineSkillToRegistry",
"agentcore:GetSkillImportFileUrl",
"agentcore:PrecheckSkillUploadViaOss",
"agentcore:UploadSkillViaOss",
"agentcore:CreateSkillDraft",
"agentcore:SubmitSkillVersion",
"agentcore:PublishSkillVersion",
"agentcore:GetAgentSpec",
"agentcore:GetAgentSpecVersion",
"agentcore:DownloadAgentSpecViaOss",
"agentcore:SyncAgentSkillReferences",
"agentcore:CreateRegistryWorkspace"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"agentcore:CreateEvents",
"agentcore:ListEvents",
"agentcore:AddMemories",
"agentcore:GetMemoryTask",
"agentcore:SearchMemories",
"agentcore:ListMemories",
"agentcore:GetMemory",
"agentcore:UpdateMemory",
"agentcore:DeleteMemory",
"agentcore:RevokeMemory",
"agentcore:ListMemorySessions",
"agentcore:ListMemorySessionMessages"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"agentloop:GetAgentSpace",
"agentloop:CreateAgentSpace",
"agentloop:ListEvaluators",
"agentloop:GetEvaluator",
"agentloop:CreateDataset",
"agentloop:AddDatasetData",
"agentloop:GetDataset",
"agentloop:ExecuteQuery",
"agentloop:DeleteDataset",
"agentloop:CreateDatasetVersion",
"agentloop:CreateExperimentPlan",
"agentloop:GetExperimentPlan",
"agentloop:ListExperimentPlans",
"agentloop:DeleteExperimentPlan",
"agentloop:CreateExperimentRun",
"agentloop:GetExperimentRun",
"agentloop:ListExperimentRuns",
"agentloop:UpdateExperimentRun",
"agentloop:CreateEvaluationTask",
"agentloop:ListEvaluationTasks",
"agentloop:GetEvaluationTask",
"agentloop:UpdateEvaluationTask",
"agentloop:DeleteEvaluationTask",
"agentloop:ListEvaluationRuns",
"agentloop:GetEvaluationRun",
"agentloop:UpdateEvaluationRun",
"agentloop:CreateEndpointConnector",
"agentloop:GetEndpointConnector",
"agentloop:ListEndpointConnectors",
"agentloop:DeleteEndpointConnector",
"agentloop:ListTracePreview",
"agentloop:CreateOptimizeTask",
"agentloop:GetOptimizeTask",
"agentloop:UpdateOptimizeTask",
"agentloop:CreateOptimizeRun",
"agentloop:GetOptimizeRun",
"agentloop:UpdateOptimizeRun"
],
"Resource": "*"
}
]
}相关文档
该文章对您有帮助吗?