serverless-plugin-warmup 6.2.0 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serverless-plugin-warmup",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Keep your lambdas warm during winter.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/schema.js CHANGED
@@ -139,6 +139,7 @@ function extendServerlessSchema(serverless) {
139
139
  serverless.configSchemaHandler.defineCustomProperties({
140
140
  properties: {
141
141
  warmup: {
142
+ type: 'object',
142
143
  patternProperties: {
143
144
  '.*': {
144
145
  type: 'object',
@@ -156,6 +157,7 @@ function extendServerlessSchema(serverless) {
156
157
  type: 'object',
157
158
  properties: {
158
159
  warmup: {
160
+ type: 'object',
159
161
  patternProperties: {
160
162
  '.*': {
161
163
  type: 'object',
package/src/warmer.js CHANGED
@@ -94,7 +94,7 @@ function addWarmUpFunctionRoleToResources(service, stage, warmerName, warmerConf
94
94
  'lambda:InvokeFunction',
95
95
  ],
96
96
  Resource: warmerConfig.functions.map((fn) => ({
97
- 'Fn::Sub': `arn:\${AWS::Partition}:lambda:\${AWS::Region}:\${AWS::AccountId}:function:${fn.name}`,
97
+ 'Fn::Sub': `arn:\${AWS::Partition}:lambda:\${AWS::Region}:\${AWS::AccountId}:function:${fn.name}*`,
98
98
  })),
99
99
  },
100
100
  {