You may encounter this error Error: No changes to deploy. Stack is up to date while deploying the SAM/Cloud formation templates.

Error: No changes to deploy. Stack is up to date:

This is because your current build does not have any changes, but you are trying to re-deploy the stack. Yes, sometimes (Having multiple workflows in a single application) it still valid to deploy. But by default, the cloud-formation/SAM rejects the build since it doesn’t have any changes.

Fix No changes to Deploy:

We can fix it bypassing the --no-fail-on-empty-changeset parameter to the build command like below.

Cloudformation build:

aws cloudformation deploy --template-file cloud-formation.yml 
--stack-name abc

SAM build:

sam deploy \
  --stack-name "sample-app" \


Happy Learning 🙂

About the Author:

Founder of Love Java, Python, Shell and opensource frameworks. Follow him on twitter and facebook for latest updates.

Leave A Comment