Skip to content

fix: improve error message for parallel stack deployments (#11649)#13146

Open
MUNJETIJAYANTHKRISHNA wants to merge 1 commit into
serverless:mainfrom
MUNJETIJAYANTHKRISHNA:fix-parallel-deploy-error
Open

fix: improve error message for parallel stack deployments (#11649)#13146
MUNJETIJAYANTHKRISHNA wants to merge 1 commit into
serverless:mainfrom
MUNJETIJAYANTHKRISHNA:fix-parallel-deploy-error

Conversation

@MUNJETIJAYANTHKRISHNA

Copy link
Copy Markdown

Summary

This pull request improves the error message shown when a CloudFormation ChangeSet
cannot be created due to a mismatch with an existing template.

Previously, the error message was unclear. Now it provides a clear explanation that
the issue often occurs when multiple deployments run in parallel (for example,
in CI/CD pipelines or simultaneous PR merges).


Changes

  • Updated lib/plugins/aws/deploy/lib/create-stack.js to add a more descriptive error message.
  • Added guidance on how to avoid the issue (e.g., by ensuring one deployment at a time or using unique stack names).

Related Issue

Fixes #11649


Testing

  • Verified that the new message appears only when the specific CloudFormation error occurs.
  • No breaking changes were introduced.

@github-actions

github-actions Bot commented Oct 24, 2025

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@MUNJETIJAYANTHKRISHNA

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@MUNJETIJAYANTHKRISHNA

Copy link
Copy Markdown
Author

Hi @medikoo and maintainers ,

This PR improves the error message for parallel stack deployments (#11649) to help users quickly understand and fix the issue when multiple CI/CD pipelines run concurrently.

It’s a small, safe, and non-breaking change that enhances developer experience.

Thanks for reviewing!

@medikoo

medikoo commented Oct 25, 2025

Copy link
Copy Markdown
Contributor

@MUNJETIJAYANTHKRISHNA I'm no longer involved into this project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy crashes randomly - ChangeSet lambdas-dev-change-set cannot be created due to a mismatch with existing attribute Template

2 participants