Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(AWS Deploy): Support disableRollback parameter #10236

Merged

Conversation

fredericbarthelet
Copy link
Contributor

Closes: #10235

@codecov
Copy link

codecov bot commented Nov 11, 2021

Codecov Report

Merging #10236 (f2f8f7a) into master (44511f3) will decrease coverage by 0.02%.
The diff coverage is 40.00%.

❗ Current head f2f8f7a differs from pull request most recent head d75cc99. Consider uploading reports for the commit d75cc99 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10236      +/-   ##
==========================================
- Coverage   85.39%   85.37%   -0.03%     
==========================================
  Files         339      339              
  Lines       13842    13843       +1     
==========================================
- Hits        11821    11818       -3     
- Misses       2021     2025       +4     
Impacted Files Coverage Δ
lib/plugins/aws/provider.js 94.31% <ø> (ø)
lib/plugins/aws/lib/updateStack.js 94.80% <40.00%> (-3.81%) ⬇️
lib/cli/triage.js 90.80% <0.00%> (-1.34%) ⬇️
lib/plugins/aws/package/compile/events/sqs.js 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44511f3...d75cc99. Read the comment docs.

Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fredericbarthelet - looks good, I only have minor remarks, let me know what do you think 🙇

lib/plugins/aws/lib/updateStack.js Show resolved Hide resolved
lib/plugins/aws/provider.js Show resolved Hide resolved
Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done, thank you @fredericbarthelet 🙇

@pgrzesik pgrzesik changed the title Add disableRollback parameter feat(AWS Deploy): Support disableRollback parameter Nov 25, 2021
@pgrzesik pgrzesik merged commit c9fefce into serverless:master Nov 25, 2021
@@ -261,6 +261,7 @@ provider:
stackParameters:
- ParameterKey: 'Keyname'
ParameterValue: 'Value'
disableRollback: true # To be used for non-production environment
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you write "for non-production environment" here?

I think this param is to control a choice as to whether to attempt to fix a partial deployment, or to roll it all back. That's not necessarily tied to production or not.

"true" is required to work around AWS issues like aws-cloudformation/cloudformation-coverage-roadmap#573 , whether in production or non-production

(see also https://github.com/serverless/serverless/blame/f22354e8dd45871915e21e5656055a9213f93ff0/docs/providers/aws/guide/serverless.yml.md#L95 )

Terraform has no-rollback as its default behaviour and plenty of people use that in production

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

Successfully merging this pull request may close these issues.

Add DisableRollback option configuration for Stack Create and Update operation
3 participants