Package Exports
- serverless-plugin-lambda-account-access
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-plugin-lambda-account-access) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
serverless-plugin-lambda-account-access
Add policies to allow cross-account access to your functions.
Usage Example
serverless.yml
service: sample
plugins:
- serverless-plugin-lambda-account-access
provider:
permitAccounts: 000001,000002 # CSV list of AWS account numbers
functions:
function1:
function2:
The above allows all functions to be invoked from the listed accounts.
Permissions are granted by adding resources of the form:
resources:
Resources:
Function1LambdaFunctionPermitInvokeFromAccount000001:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName:
Fn::GetAtt:
- Function1LambdaFunction
- Arn
Principal: 000001