Gathering detailed insights and metrics for serverless-plugin-custom-roles
Gathering detailed insights and metrics for serverless-plugin-custom-roles
Gathering detailed insights and metrics for serverless-plugin-custom-roles
Gathering detailed insights and metrics for serverless-plugin-custom-roles
npm install serverless-plugin-custom-roles
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
13 Stars
49 Commits
11 Forks
3 Watching
2 Branches
5 Contributors
Updated on 12 Jan 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
42.8%
687
Compared to previous day
Last week
21.3%
3,573
Compared to previous week
Last month
2.9%
12,576
Compared to previous month
Last year
-16.8%
222,184
Compared to previous year
2
A Serverless plugin that makes creation of per function IAM roles easier. It mimics serverless behavior, but creates separate roles for each function instead of a shared one. If you want to create per function roles without using this plugin, you are responsible for providing the corresponding permissions for your function logs and stream events and need to repeat the same permissions from function to function.
1service: my-service 2 3plugins: 4 - serverless-plugin-custom-roles 5 6provider: 7 name: aws 8 iam: 9 role: 10 statements: # [Optional] these statements will be applied to all functions 11 - Effect: "Allow" 12 Action: 13 - "xray:PutTraceSegments" 14 - "xray:PutTelemetryRecords" 15 Resource: "*" 16 permissionsBoundary: "arn:aws:iam::123456789012:policy/boundaries" # [Optional] the ARN of the policy used to set the permissions boundary for the role 17 18functions: 19 function1: 20 handler: 'src/function1.js' 21 iamRoleStatements: # [Optional] these statements will be applied to this function only (in addition to statements that are applied to all functions) 22 - Effect: "Allow" 23 Action: 24 - "cloudwatch:GetMetricStatistics" 25 - "cloudwatch:DescribeAlarms" 26 - "cloudwatch:PutMetricData" 27 Resource: "*" 28 29 function2: 30 handler: 'src/function2.js' 31 events: 32 - stream: # Appropriate permissions will be applied automatically 33 type: dynamodb 34 arn: "<stream-arn>"
The MIT License (MIT)
Copyright (c) 2018-2022 Anton Bazhal
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/9 approved changesets -- score normalized to 3
Reason
7 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More