From 4520e70ec09dc8f4c373d19e7b6115d8e4f3acd0 Mon Sep 17 00:00:00 2001 From: Lukas Siemon Date: Fri, 31 May 2024 12:35:06 -0700 Subject: [PATCH] feat: added stack termination protection --- .../tasks/serverless/snippets/serverless/.base/resolver.yml | 3 +++ .../@sls-closedsource-dynamodb/serverless/.base/resolver.yml | 2 ++ .../@sls-closedsource-react/serverless/.base/resolver.yml | 2 ++ .../assorted/@sls-closedsource/serverless/.base/resolver.yml | 2 ++ 4 files changed, 9 insertions(+) diff --git a/src/plugin/tasks/serverless/snippets/serverless/.base/resolver.yml b/src/plugin/tasks/serverless/snippets/serverless/.base/resolver.yml index 38bd2b02..d7e102a9 100644 --- a/src/plugin/tasks/serverless/snippets/serverless/.base/resolver.yml +++ b/src/plugin/tasks/serverless/snippets/serverless/.base/resolver.yml @@ -16,5 +16,8 @@ provider: ENVIRONMENT: '${self:provider.stage}' versionFunctions: false +plugins: + - serverless-stack-termination-protection + <<<: - ${file(^/${opt:stack}.yml), service=${projectName}} diff --git a/test/projects/assorted/@sls-closedsource-dynamodb/serverless/.base/resolver.yml b/test/projects/assorted/@sls-closedsource-dynamodb/serverless/.base/resolver.yml index caf4bc54..6b3516a4 100644 --- a/test/projects/assorted/@sls-closedsource-dynamodb/serverless/.base/resolver.yml +++ b/test/projects/assorted/@sls-closedsource-dynamodb/serverless/.base/resolver.yml @@ -16,3 +16,5 @@ provider: versionFunctions: false <<<: - ${file(^/${opt:stack}.yml), service=projectName} +plugins: + - serverless-stack-termination-protection diff --git a/test/projects/assorted/@sls-closedsource-react/serverless/.base/resolver.yml b/test/projects/assorted/@sls-closedsource-react/serverless/.base/resolver.yml index caf4bc54..6b3516a4 100644 --- a/test/projects/assorted/@sls-closedsource-react/serverless/.base/resolver.yml +++ b/test/projects/assorted/@sls-closedsource-react/serverless/.base/resolver.yml @@ -16,3 +16,5 @@ provider: versionFunctions: false <<<: - ${file(^/${opt:stack}.yml), service=projectName} +plugins: + - serverless-stack-termination-protection diff --git a/test/projects/assorted/@sls-closedsource/serverless/.base/resolver.yml b/test/projects/assorted/@sls-closedsource/serverless/.base/resolver.yml index caf4bc54..6b3516a4 100644 --- a/test/projects/assorted/@sls-closedsource/serverless/.base/resolver.yml +++ b/test/projects/assorted/@sls-closedsource/serverless/.base/resolver.yml @@ -16,3 +16,5 @@ provider: versionFunctions: false <<<: - ${file(^/${opt:stack}.yml), service=projectName} +plugins: + - serverless-stack-termination-protection