`serverless package` doesn't honor the artifact and package individually configuration
See original GitHub issueThis is a (Bug Report)
Description
I’m trying to use this command: serverless package --stage devd --account dev
to create packages for my AWS Lambda functions and it doesn’t work properly.
It’s supposed to use the files that I reference in the artifact
property instead it archives the root zip folder.
What went wrong?
When using serverless package
command with config artifact
and package
.individually: true
it zips/archives the whole root folder instead of honoring the configuration in the serverless.yml file.
What did you expect should have happened?
I’m trying to use the artifact
and package
.individually: true
to have separate packages for each of my function and use the zip files that I generate with gulp.
What was the config you used?
service: test
package:
individually: true
provider:
name: aws
runtime: nodejs6.10
stage: ${opt:stage}
region: us-east-1
profile: ${opt:account}
functions:
hello1:
handler: handler1.hello1
package:
artifact: dist/hello1.zip
events:
- schedule: rate(1 minute)
hello2:
handler: handler2.hello2
package:
artifact: dist/hello2.zip
events:
- schedule: rate(1 minute)
What stacktrace or error message from your provider did you see?
None.
Similar or dependent issues:
Additional Data
- Serverless Framework Version you’re using: v.1.14.0
- Operating System: Windows 7
- Stack Trace: None.
- Provider Error messages: None.
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Packaging - Serverless Framework
Packaging functions separately ... If you want even more controls over your functions for deployment you can configure them to be packaged independently....
Read more >altering paths inside serverless artifact - node.js - Stack Overflow
I have serverless.yml in the main directory, plus two individual config files for the two "services." My preference is custom pack the zip,...
Read more >serverless | Yarn - Package Manager
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more.
Read more >serverless-webpack - npm
When enabled in your service configuration, functions are packaged and compiled individually, resulting in smaller Lambda packages that contain ...
Read more >nri-bundle 4.7.3 · helm/newrelic - Artifact Hub
Groups together the individual charts for the New Relic Kubernetes solution for a more comfortable deployment.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dlcron @HyperBrain This bug has been stopping us from upgrading from
1.11.0
, and serverless is up to1.15.3
. Has there been any update on it?Right, so we have the bug here.