Ignore check for unchanged files after failed deployment
See original GitHub issueAfter a failed deployment due to remote (CloudFormation) error I have to use sls deploy --force
to trigger a new deployment with the same configuration because serverless skips the deployment with the Service files not changed. Skipping deployment...
notice per default.
Expected behaviour
If a deployment failed due to a remote (CloudFormation) error, a new sls deploy
should trigger a deployment even if the service files have not changed. The check for unchanged configuration should only matter after a successful deployment.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:50
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Service files not changed. Skipping deployment. - Seed.run
Serverless Framework has an option to skip this check and deploy anyway. Use the --force flag when you run serverless deploy . ......
Read more >Ignore files in your Git repo - Azure - Microsoft Learn
To resume tracking, run the git update-index command with the --no-assume-unchanged flag. Use Git rm to ignore changes. Entries in a .gitignore ...
Read more >Keep file in a Git repo, but don't track changes - Stack Overflow
The docs say this is a bad idea. "Users often try to use the assume-unchanged and skip-worktree bits to tell Git to ignore...
Read more >Deploy files that actually changed (#60296) · Issues - GitLab
I'm guessing in terms of file size, it remained the same but now the time the file was last modified changed but this...
Read more >How to skip jobs based on the files changed in a subdirectory?
I am working at a company who use the monorepo pattern to store their code. Each sub project has its own test and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Have you tried to use
sls deploy --force
@tom10271 ?+1 Bump on this issue. Serverless should be able to clean up failed deployments. Using
--force
doesn’t seem like a very stable solution.