A AliyunServiceRoleForDataHub é a função vinculada a service do DataHub. Este tópico descreve os cenários de uso dessa função e como excluí-la.
Informações básicas
A função vinculada a service do DataHub é uma função do RAM que concede permissões de acesso ao Object Storage Service (OSS), Tablestore (OTS) ou Function Compute durante a sincronização de dados do DataHub para esses services. Para mais informações, consulte Service-linked roles.
Cenários
A função vinculada a service do DataHub é necessária para acessar o OSS, OTS ou Function Compute durante a sincronização de dados do DataHub para esses destinos.
Descrição
Nome da função: AliyunServiceRoleForDataHub
Política anexada à função: AliyunServiceRolePolicyForDataHub
Documento da política:
{
"Version": "1",
"Statement": [
{
"Action": [
"log:GetLogStore",
"log:ListLogStores",
"log:CreateLogStore",
"log:DeleteLogStore",
"log:UpdateLogStore",
"log:GetCursorOrData",
"log:ListShards",
"log:PostLogStoreLogs",
"log:CreateConfig",
"log:UpdateConfig",
"log:DeleteConfig",
"log:GetConfig",
"log:ListConfig",
"log:CreateMachineGroup",
"log:UpdateMachineGroup",
"log:DeleteMachineGroup",
"log:GetMachineGroup",
"log:ListMachineGroup",
"log:ListMachines",
"log:ApplyConfigToGroup",
"log:RemoveConfigFromGroup",
"log:GetAppliedMachineGroups",
"log:GetAppliedConfigs",
"log:GetShipperStatus",
"log:RetryShipperTask",
"log:CreateConsumerGroup",
"log:UpdateConsumerGroup",
"log:DeleteConsumerGroup",
"log:ListConsumerGroup",
"log:ConsumerGroupUpdateCheckPoint",
"log:ConsumerGroupHeartBeat",
"log:GetConsumerGroupCheckPoint"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"fc:InvokeFunction",
"fc:GetFunction"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"oss:GetObject",
"oss:PutObject",
"oss:ListObjects",
"oss:GetBucketAcl"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"ots:ListTable",
"ots:DescribeTable",
"ots:GetRow",
"ots:PutRow",
"ots:UpdateRow",
"ots:DeleteRow",
"ots:GetRange",
"ots:BatchGetRow",
"ots:BatchWriteRow"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "datahub.aliyuncs.com"
}
}
}
]
}
Exclua a função vinculada a service para DataHub
Antes de excluir a função vinculada a service do DataHub, remova os DataConnectors dependentes dela.
Para saber como excluir um DataConnector, consulte Delete a DataConnector.
Para obter detalhes sobre a exclusão de funções vinculadas a service, consulte a seção "Delete a service-linked role" no tópico Service-linked roles.
Crie a função vinculada a service para DataHub como usuário RAM
Para criar a função vinculada a service do DataHub como usuário RAM, anexe a política CreateServiceLinkedRole a esse usuário. O código a seguir descreve a política:
{
"Statement": [
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"datahub.aliyuncs.com"
]
}
}
}
],
"Version": "1"
}