Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sls-helper-plugin-janis

Package Overview
Dependencies
Maintainers
2
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sls-helper-plugin-janis - npm Package Compare versions

Comparing version 2.9.2 to 2.10.0-beta.0

2

CHANGELOG.md

@@ -8,2 +8,4 @@ # Changelog

## [Unreleased]
### Added
- Custom IAM Role added to avoid hitting IAM Policy size limit

@@ -10,0 +12,0 @@ ## [2.9.2] - 2020-03-26

@@ -32,2 +32,3 @@ 'use strict';

region: 'us-east-1',
role: 'ServiceExecutionRole',
endpointType: 'REGIONAL',

@@ -47,13 +48,2 @@ apiName: 'JANIS ${self:custom.humanReadableStage.${self:custom.stage}} ${self:custom.serviceTitle} API',

},
iamRoleStatements: [
{
Effect: 'Allow',
Action: [
's3:PutObject'
],
Resource: [
'arn:aws:s3:::janis-trace-service-${self:custom.stage}/*'
]
}
],
...(provider || {})

@@ -153,2 +143,68 @@ },

ServiceExecutionRole: {
Type: 'AWS::IAM::Role',
Properties: {
RoleName: 'Janis${self:custom.serviceName}Service-lambdaRole',
Path: '/janis-service/',
AssumeRolePolicyDocument: {
Version: '2012-10-17',
Statement: [
{
Effect: 'Allow',
Principal: {
Service: [
'lambda.amazonaws.com'
]
},
Action: 'sts:AssumeRole'
}
]
},
// If VPC is configured, it must include this managed policy
...(provider && provider.vpc ? { ManagedPolicyArns: ['arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole'] } : {}),
Policies: [
{
PolicyName: 'janis-${self:custom.serviceCode}-logs-policy',
PolicyDocument: {
Version: '2012-10-17',
Statement: [
{
Effect: 'Allow',
Action: [
'logs:CreateLogGroup',
'logs:CreateLogStream',
'logs:PutLogEvents'
],
Resource: [
{
'Fn::Join': [
':',
[
'arn:aws:logs',
{ Ref: 'AWS::Region' },
{ Ref: 'AWS::AccountId' },
'log-group:/aws/lambda/*:*'
]
]
},
{
'Fn::Join': [
':',
[
'arn:aws:logs',
{ Ref: 'AWS::Region' },
{ Ref: 'AWS::AccountId' },
'log-group:/aws/lambda/*:*:*'
]
]
}
]
}
]
}
}
]
}
},
UnauthorizedResponse: {

@@ -155,0 +211,0 @@ Type: 'AWS::ApiGateway::GatewayResponse',

2

package.json
{
"name": "sls-helper-plugin-janis",
"version": "2.9.2",
"version": "2.10.0-beta.0",
"description": "A Serverless Helper plugin to add custom helpers for JANIS Commerce",

@@ -5,0 +5,0 @@ "main": "lib/plugin.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc