You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,27 +15,38 @@ plugins:
15
15
- serverless-plugin-lambda-account-access
16
16
17
17
provider:
18
-
permitAccounts: 000001,000002# CSV list of AWS account numbers
18
+
allowAccounts: # can be defined as a single value or an array
19
+
- 111111111111# principal as accountId
20
+
- 'arn:aws:iam::222222222222:root'# principal as ARN
19
21
20
22
functions:
21
23
function1:
22
24
function2:
25
+
allowAccess: false # excludes specific function
26
+
function3:
27
+
allowAccess: 333333333333# allows access from these principals instead of the globally defined ones
23
28
```
24
29
25
-
The above allows all functions to be invoked from the listed accounts.
30
+
The above allows all functions to be invoked from the principals listed in `provider` section, unless access is explicitly forbidden inside function config (`function2`), or accounts list is overridden locally (`function3`).
26
31
27
32
Permissions are granted by adding resources of the form:
0 commit comments