All Products
Search
Document Center

Resource Access Management:AliyunServiceRolePolicyForFC

Last Updated:Oct 24, 2025

AliyunServiceRolePolicyForFC is the authorization policy dedicated to a service-linked role. The policy is automatically attached to a service role when the service role is created. Then, the service-linked role is authorized to access other cloud services. This policy is updated by the relevant Alibaba Cloud service. Do not attach this policy to a RAM identity other than a service-linked role.

Policy details

  • Type: service system policy

  • Creation time: 18:31:06 on June 03, 2025

  • Update time: 02:09:16 on October 24, 2025

  • Current version: v9

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "vpc:DescribeVSwitchAttributes",
        "vpc:DescribeVpcAttribute",
        "vpc:DescribeVSwitches"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "ecs:CreateNetworkInterface",
        "ecs:DeleteNetworkInterface",
        "ecs:DescribeNetworkInterfaces",
        "ecs:DescribeSecurityGroups",
        "ecs:CreateNetworkInterfacePermission",
        "ecs:DeleteNetworkInterfacePermission",
        "ecs:DescribeNetworkInterfacePermissions",
        "ecs:AttachNetworkInterface",
        "ecs:DetachNetworkInterface",
        "ecs:DescribeSecurityGroupAttribute",
        "ecs:AuthorizeSecurityGroupEgress",
        "ecs:TagResources",
        "ecs:ListTagResources"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "cr:PullRepository",
        "cr:GetArtifactTag",
        "cr:GetAuthorizationToken",
        "cr:GetRepository",
        "cr:GetRepositoryTag",
        "cr:ListRepositoryTag",
        "cr:GetRepoTagManifest",
        "cr:GetRepositoryManifest",
        "cr:GetInstanceVpcEndpoint",
        "cr:GetInstance",
        "cr:ListInstance",
        "cr:GetNamespace",
        "cr:GetArtifactBuildRule",
        "cr:CreateArtifactBuildTask"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "fc:InvokeFunction",
        "eventbridge:PutEvents",
        "mq:PUB",
        "mq:OnsInstanceBaseInfo",
        "mns:SendMessage",
        "mns:PublishMessage",
        "fnf:ReportTaskSucceeded",
        "fnf:ReportTaskFailed"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:CreateProject",
        "log:CreateLogStore",
        "log:GetProject",
        "log:GetLogStore",
        "log:DeleteProject",
        "log:DeleteLogStore",
        "log:GetLogStoreLogs"
      ],
      "Resource": [
        "acs:log:*:*:project/aliyun-fc-*",
        "acs:log:*:*:project/*/logstore/function-log*"
      ],
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:PostLogStoreLogs"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "ram:GetRole"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Effect": "Allow",
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "fc.aliyuncs.com"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "oss:DeleteBucketEventNotification",
        "oss:PutBucketEventNotification",
        "oss:GetBucketEventNotification",
        "oss:GetBucketAcl",
        "oss:ListBuckets",
        "oss:GetObject"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "log:CreateETLJob",
        "log:UpdateETLJob",
        "log:DeleteETLJob",
        "log:GetETLJob"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ots:GetTrigger",
        "ots:CreateTrigger",
        "ots:DeleteTrigger"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "cdn:DescribeFCTrigger",
        "cdn:UpdateFCTrigger",
        "cdn:AddFCTrigger",
        "cdn:DeleteFCTrigger"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "mns:Subscribe",
        "mns:Unsubscribe",
        "mns:GetSubscriptionAttributes"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "eventbridge:GetEventBus",
        "eventbridge:ListEventBuses",
        "eventbridge:CreateEventBus",
        "eventbridge:DeleteEventBus",
        "eventbridge:CreateEventSource",
        "eventbridge:DeleteEventSource",
        "eventbridge:UpdateEventSource",
        "eventbridge:ListUserDefinedEventSources",
        "eventbridge:ListPartnerEventSources",
        "eventbridge:ListAliyunOfficialEventSources",
        "eventbridge:GetRule",
        "eventbridge:ListRules",
        "eventbridge:CreateRule",
        "eventbridge:DeleteRule",
        "eventbridge:DisableRule",
        "eventbridge:UpdateRule",
        "eventbridge:CreateTargets",
        "eventbridge:DeleteTargets",
        "eventbridge:GetEventStreaming",
        "eventbridge:CreateEventStreaming",
        "eventbridge:DeleteEventStreaming",
        "eventbridge:PauseEventStreaming",
        "eventbridge:StartEventStreaming",
        "eventbridge:UpdateEventStreaming",
        "eventbridge:ListEventStreamings"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "alb:ListServerGroupServers",
        "alb:DeleteServerGroup",
        "alb:CreateServerGroup",
        "alb:RemoveServersFromServerGroup",
        "alb:AddServersToServerGroup",
        "alb:ListRules",
        "alb:CreateRule",
        "alb:DeleteRule"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "ram:PassRole",
      "Resource": "acs:ram::*:role/*",
      "Condition": {
        "StringEquals": {
          "acs:Service": [
            "log.aliyuncs.com",
            "ots.aliyuncs.com"
          ]
        }
      }
    }
  ]
}

References