Skip to content

Commit 84b0a92

Browse files
authored
Merge pull request #123 from aliyun/tanhehe/add_permission_and_access_denied_faq
add permission and access denied faq
2 parents 37d43cd + 534c3b0 commit 84b0a92

4 files changed

Lines changed: 31 additions & 3 deletions

File tree

docs/usage/faq-zh.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33

44
## Fun Deploy
55

6-
## FCINVALIDArgumentError: PUT /services/xxxxx failed with 400. requestId: xxxxx, message: VSwitch 'xxxxx' does not exist in VPC 'xxxxx'. The VSwith may not exist or the service role does not have 'vpc:DescribeVSwitchAttributes` permission.
6+
### NoPermissionError: You are not authorized to do this action. Resource: acs:ram:*:xxxxxxxxxx:role/* Action: ram:GetRole
7+
8+
这个问题是由于通过子用户执行 `fun deploy`,但是没有给该子用户配置 AliyunRAMFullAccess 权限导致的。
9+
10+
解决方法:为子用户配置 AliyunRAMFullAccess 的权限或者使用主账户 ak。
11+
12+
### FCAccessDeniedError: GET /services/localdemo failed with 403. requestid: a73f4640-0c8d-958c-c248-db0cc70d834e, message: The service or function doesn't belong to you
13+
14+
这个问题发生在 fun deploy 时配置的 accountId 与 accessKeyId 不匹配:
15+
16+
![](https://tan-blog.oss-cn-hangzhou.aliyuncs.com/img/20181229150556.png)
17+
18+
有可能是写成了其他人的 accountId,也有可能是将登录名误认为是 accountId。
19+
20+
### FCINVALIDArgumentError: PUT /services/xxxxx failed with 400. requestId: xxxxx, message: VSwitch 'xxxxx' does not exist in VPC 'xxxxx'. The VSwith may not exist or the service role does not have 'vpc:DescribeVSwitchAttributes` permission.
721

822
这个问题发生在使用 `fun deploy` 部署配置了 vpc 的函数:
923

docs/usage/faq.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33

44
## Fun Deploy
55

6+
### NoPermissionError: You are not authorized to do this action. Resource: acs:ram:*:xxxxxxxxxx:role/* Action: ram:GetRole
7+
8+
This problem is caused by executing `fun deploy` through the sub-user withouting grant the AliyunRAMFullAccess permission for sub-user.
9+
10+
The solution is to grant the AliyunRAMFullAccess permission for the sub-user or use the primary account ak.
11+
12+
### FCAccessDeniedError: GET /services/localdemo failed with 403. requestid: a73f4640-0c8d-958c-c248-db0cc70d834e, message: The service or function doesn't belong to you
13+
14+
This problem occurs when fun deploy is configured with an accountId that does not match the accessKeyId:
15+
16+
![](https://tan-blog.oss-cn-hangzhou.aliyuncs.com/img/20181229150556.png)
17+
18+
It is possible to write someone else's accountId or mistake the username for accountId.
19+
620
### FCInvalidArgumentError: PUT /services/xxxxx failed with 400. requestId: xxxxx, message: VSwitch 'xxxxx' does not exist in VPC 'xxxxx'. The VSwith may not exist or the service role does not have 'vpc:DescribeVSwitchAttributes` permission.
721

822
This problem occurs when deploying vpc with `fun deploy`:

lib/commands/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const inquirer = require('inquirer');
66
const path = require('path');
77
const yaml = require('js-yaml');
88
const util = require('util');
9-
const mkdirp = require('mkdirp');
9+
const mkdirp = require('mkdirp-promise');
1010

1111
const getProfile = require('../profile').getProfileFromFile;
1212

test/profile.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const util = require('util');
66

77
const expect = require('expect.js');
88
const yaml = require('js-yaml');
9-
const mkdirp = require('mkdirp');
9+
const mkdirp = require('mkdirp-promise');
1010
const rimraf = require('rimraf');
1111

1212
const getProfile = require('../lib/profile').getProfile;

0 commit comments

Comments
 (0)