Skip to content

QUESTION: build once run anywhere possible with serverless-webpack? #558

@ed4becky

Description

@ed4becky

We currently have 5 environments we deploy our lambda functions to (dev, test, uat, stage, prod)

in our CI/CD pipeline we call sls deploy for each one, triggering a webpack build each time.

Is it possible with serverless-webpack to build the functions once, and deploy the single build to each environment? I know some configuration files get built with stage specific names (roles, the arn for each function, others...), but is that a separate part of the process from the webpack build? Or doe the webpack step include stage specific output?

Can I run the package thru webpack once, and include the results in the packaging for each stage?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions