一、报错 “you are not authorized to perform operation resource has no permission” 如何处理?
该报错是由于账号本身或调用角色 SLS_QcsRole 缺少相关权限导致的,请根据报错信息,确定缺少的策略,再通过 访问管理控制台,将缺少的策略赋予账号以及角色 SLS_QcsRole。
报错信息示例:
[request id:xxxxx]you are not authorized to perform operation (scf:CreateFunction) resource (qcs::scf:gz:uin/xxxxxx:function/*) has no permission
从报错信息可知,缺少 scf:CreateFunction 的权限,因此需要登录控制台,为对应的账号与角色 SLS_QcsRole 赋予 SCFFullAccess 的策略。
二、子账号缺少权限该如何处理?
参考 子账号权限配置说明。