Skip to content

Commit 7c937eb

Browse files
authored
Merge pull request #1833 from simlu/dev
feat: added stack termination protection
2 parents 42ffe8d + 4520e70 commit 7c937eb

File tree

4 files changed

+9
-0
lines changed
  • src/plugin/tasks/serverless/snippets/serverless/.base
  • test/projects/assorted

4 files changed

+9
-0
lines changed

src/plugin/tasks/serverless/snippets/serverless/.base/resolver.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ provider:
1616
ENVIRONMENT: '${self:provider.stage}'
1717
versionFunctions: false
1818

19+
plugins:
20+
- serverless-stack-termination-protection
21+
1922
<<<:
2023
- ${file(^/${opt:stack}.yml), service=${projectName}}

test/projects/assorted/@sls-closedsource-dynamodb/serverless/.base/resolver.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ provider:
1616
versionFunctions: false
1717
<<<:
1818
- ${file(^/${opt:stack}.yml), service=projectName}
19+
plugins:
20+
- serverless-stack-termination-protection

test/projects/assorted/@sls-closedsource-react/serverless/.base/resolver.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ provider:
1616
versionFunctions: false
1717
<<<:
1818
- ${file(^/${opt:stack}.yml), service=projectName}
19+
plugins:
20+
- serverless-stack-termination-protection

test/projects/assorted/@sls-closedsource/serverless/.base/resolver.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ provider:
1616
versionFunctions: false
1717
<<<:
1818
- ${file(^/${opt:stack}.yml), service=projectName}
19+
plugins:
20+
- serverless-stack-termination-protection

0 commit comments

Comments
 (0)