For support requests please search or create posts on Serverless Forum: https://forum.serverless.com
carlosandrebp on master
upload email icon (compare)
carlosandrebp on master
Icons update (compare)
carlosandrebp on master
updates animations (compare)
andrepiresbp on master
Updates (compare)
andrepiresbp on master
Update (compare)
Just as further information. If I open the package dir and unzip the code and run npm ls, I see a large number of extranious packages. I can confirm that these packages are 1. in the node_modules dir 2. not specified by the package.json file as dependencies 3. not required for execution of my application.
(serverless package --package out && cd out && unzip myservice.zip && npm ls
)
Hi! We're trying to migrate from the v2 variable resolvers to the new v3 variable resolver engine. I'm struggling with how to return "undefined" values (i.e. my resolver can't resolve).
If I return { value: undefined }
, serverless gives error:
Source "xyz" returned not supported result: "undefined"
If I return just undefined
(i.e. not wrapped in { value }), serverless gives error:
Unexpected "xyz" source result: undefined
If I return { value: null }
, serverless gives error:
Value not found at "xyz" source
For context, I want to use this to pass an optional parameter:
MyLayer:
Type: AWS::Lambda::LayerVersion
Properties:
Content:
S3Bucket: ${myresolver:bucket, ''}
S3Key: ${myresolver:key, ''}
S3ObjectVersion: ${myresolver:objectVersion}
Hi all, does anyone know if it's possible to have conditional resources defined, based on the stage?
The use case is that prod and staging stages use a VPC, but dev does not. I am creating a Security Group under resources, which is what I want to make conditional based on the stage.
stage
parameter resolved in serverless? I see that it can be passed to both the package and deploy command, but it seems to be injected during packaging. Is it possible to have this resolved at deploy-time, to enable build-once + promote artifact deployments?
node:899) ExperimentalWarning: The fs.promises API is experimental
Type Error [ E R R_ I N V A L I D_ A R G_ T Y P E] ------
TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function. Received type undefined
at promisify (internal/util.js:256:11)
at Object.<anonymous> (/usr/lib/node_modules/serverless/node_modules/compress-brotli/src/index.js:9:18)