Feat: Remove state and encryption key on sst remove#6593
Feat: Remove state and encryption key on sst remove#6593jamesgibbons92 wants to merge 4 commits intoanomalyco:devfrom
sst remove#6593Conversation
|
@jamesgibbons92 is this related to #6097? i like the |
|
@vimtor Yeh similar, as part of this PR I am also remove the |
|
There is 1 minor issue I need to look into this PR still, if you run |
|
related to #6669 (comment) and #6576 (comment) do you think it could make sense to expose this as a config like this: export default $config({
app(input) {
return {
name: "my-sst-app",
home: "aws",
state: {
retention: 30,
compress: true,
purgeable: true // or a better name
}
};
},
}); |
|
makes sense if were exposing more configuration options for the state management this way, I was going to implement it this way initially but opted for arg as it was easier at the time. happy to update this when that state config handling lands |
b5d65df to
c008f5e
Compare
Fixes the issue where secret is attempted to be set before a stage is deployed and initialised the passphrase
|
@vimtor just wondering actually, should we put this config in the or |
|
i'm thinking maybe we do this: and deprecate |
Closes #5617
This PR adds a state config prop
purgeOnRemoveto the sst config.When true, the state file, encryption key and secrets related to the stage are deleted from s3 and ssm.
This replicates the same behaviour as
pulumi destroy --removeand cleans up unused passphrases and objects in s3.This is default false to maintain backwards compatibility.