Comments (3)
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.
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.
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)
- Why AWS only project? HOT 1
- Nextjs doesn't have "copyFiles" property
- SST adds unwanted CloudWatch Subscription Filter HOT 2
- EventBus.ts retrierFn lacks a configuration option for runtime: option HOT 3
- How to debug Lambda functions(JAVA) with IntelliJ IDEA?
- sst deploy set CloudFormation Parameter
- Add a [filter] option to sst dev HOT 4
- SST dev to use custom toolkitStack(CDKtoolkit stack) and Not update it HOT 1
- You installed esbuild for another platform than the one you're currently using HOT 2
- future/auth crashes with RPError
- im not able to upgrade to nodejs 18 for AWS stack HOT 10
- LAMBDA_RUNTIME Failed to get next invocation. No Response from endpoint. Issue only in pnpm sst dev
- astro-sst depends on deprecated astrojs/webapi
- Migration path to SST v3 for stacks using CDK constructs HOT 2
- Can't use a custom Pothos plugin - "Failed to extract schema: No plugin named myPlugin was registered" HOT 3
- Next.js 15 does not work. HOT 2
- Future Auth's session references old Auth Proxy
- No vitest in current create-sst as referenced in docs
- Deployed Prod API returning null instead of expected output
- [ion] Auth Example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sst.