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 +1 -1
- package/src/schema.js +2 -0
- package/src/warmer.js +1 -1
package/package.json
CHANGED
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
|
{
|