serverless / serverless/serverless

Feature: sls package runs validate

Open
#5,066 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cat/dx enhancement needs feedback
Dominant language
JavaScript
Stars
46.9k
Forks
5.7k
Avg merge
10h 7m
Merged PRs (30d)
57

Description

This is a Feature Proposal

Description

I do not deploy from the command line, I deploy via CircleCI. I have been using sls package to check over what will be output to cloudformation before pushing a branch to github and creating a pull request. However if I have an error in my serverless template (e.g. a typo like FN::Join instead of Fn::Join) I don't find out until the validation error occurs in deployment.

If validation were to be run as part of package (or available on its own) that would be really convenient for checking my code before I pushed.

Additional Data

Serverless version 1.27.3
Mac OSX 10.12.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue centers on the sls package command and validation of the generated CloudFormation template; start by tracing that packaging flow and its existing validation behavior. Done means packaging reports template errors such as an invalid Fn::Join name before deployment, with standalone validation addressed if the design supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.