AWS

[Fixed] – Error: No changes to deploy. Stack is up to date

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
--no-fail-on-empty-changeset

SAM build:

sam deploy \
  --stack-name "sample-app" \
  --no-fail-on-empty-changeset

References:

Happy Learning :)

Found a mistake or something out of date? Tell us →

Written by

chandrashekhar

Founder of onlinetutorialspoint.com. Enterprise architect with 15+ years in healthcare technology, designing and running systems on AWS and Azure. Writes about building real things with AI, local AI hardware and cloud certifications.

Keep reading

Ask a question or leave a comment

Our product

Preparing for an AWS, Azure or Google Cloud exam?

Take a free 20-question sample test with an explanation for every answer. No sign-up needed.

Start the free test