Code Monkey home page Code Monkey logo

Comments (3)

jayair avatar jayair commented on June 9, 2024

Hmm let me check with the team.

What's the core issue here? Somebody accidentally runs sst remove on a prod stage? And you want that command to fail?

from sst.

imaginaryCorn avatar imaginaryCorn commented on June 9, 2024

Many thanks! Its more the interraction with Cloudformation that feels at issue here, a key Lambda was deleted from a stack during a Rollback and subsequent Rollback Failure. We followed this SST docs example until this incident, but this example does not explicately set any removal policy on production, where Cloudformation's default behaviour for having no removal policy is to follow the destroy policy.

Whole stack termination protection appears possible to set with CDK so we should be fine there, but we want to know what happens in SST when setDefaultRemovalPolicy is not set at all. If there is undocumented issues with unset being the same as destroy we should clear this up, or setDefaultRemovalPolicy should be required in some way so that there is no implicate behaviour for not setting this.

from sst.

jayair avatar jayair commented on June 9, 2024

So this is the policy on remove if nothing is set: https://docs.sst.dev/advanced/removal-policy#retained-resources

Does that make sense?

from sst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.