FG
💻 Software☁️ Cloud & DevOpsAmazon

Deploy stops at "Installing dependencies for custom CloudFormation resources"

Fresh5 days ago
Mar 14, 20260 views
Confidence Score61%
61%

Problem

I´m using this template https://github.com/msfidelis/serverless-architecture-boilerplate and the issue has only occured with this template so far. Creating new projects from scratch with the sls assistent and deploying works fine. When running sls deploy it processes these 3 steps and then stops [code block] Running deploy with --verbose --force does not change anything and there are literally no additional exceptions or log messages thrown which makes it very hard to find the source of this issue. Serverless v: 1.50.0 OS: Windows 10

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Update Serverless Framework and Dependencies

Medium Risk

The issue occurs due to a potential incompatibility between the Serverless Framework version 1.50.0 and the dependencies specified in the template. Older versions may not support certain features or have bugs that have been fixed in later releases. Additionally, the custom CloudFormation resources may rely on updated libraries that are not compatible with the older Serverless version.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Update Serverless Framework

    Upgrade the Serverless Framework to the latest stable version to ensure compatibility with the template and its dependencies.

    bash
    npm install -g serverless
  2. 2

    Check Node.js Version

    Ensure that your Node.js version is compatible with the latest Serverless Framework. Update Node.js if necessary.

    bash
    node -v
  3. 3

    Update Project Dependencies

    Navigate to the project directory and update the dependencies specified in package.json to their latest versions. This can help resolve any conflicts with the Serverless Framework.

    bash
    npm update
  4. 4

    Clear NPM Cache

    Sometimes, cached packages can cause issues. Clear the NPM cache to ensure that all packages are freshly installed.

    bash
    npm cache clean --force
  5. 5

    Retry Deployment

    After completing the updates, attempt to deploy the project again using the Serverless command.

    bash
    sls deploy

Validation

Confirm that the deployment completes successfully without stopping at the 'Installing dependencies for custom CloudFormation resources' step. Check the deployment logs for any errors or warnings.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

serverlesslambdaawsbugcat/packagingos/windows