{"id":40446705,"url":"https://github.com/serverless-guru/serverless-termination-protection","last_synced_at":"2026-01-20T17:02:10.604Z","repository":{"id":46064581,"uuid":"185888707","full_name":"serverless-guru/serverless-termination-protection","owner":"serverless-guru","description":"Add AWS Cloudformation termination protection to Serverless stacks","archived":false,"fork":false,"pushed_at":"2021-11-16T21:50:43.000Z","size":9,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-06T17:59:52.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverless-guru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-10T00:06:57.000Z","updated_at":"2020-09-24T12:45:13.000Z","dependencies_parsed_at":"2022-08-02T11:54:23.739Z","dependency_job_id":null,"html_url":"https://github.com/serverless-guru/serverless-termination-protection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serverless-guru/serverless-termination-protection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-guru%2Fserverless-termination-protection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-guru%2Fserverless-termination-protection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-guru%2Fserverless-termination-protection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-guru%2Fserverless-termination-protection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless-guru","download_url":"https://codeload.github.com/serverless-guru/serverless-termination-protection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-guru%2Fserverless-termination-protection/sbom","scorecard":{"id":812913,"data":{"date":"2025-08-11","repo":{"name":"github.com/serverless-guru/serverless-termination-protection","commit":"67ea0770745970c42ce159a6f3ae4395129a68b8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-rrc9-gqf8-8rwg","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T13:35:11.721Z","repository_id":46064581,"created_at":"2025-08-23T13:35:11.721Z","updated_at":"2025-08-23T13:35:11.721Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-20T17:02:09.811Z","updated_at":"2026-01-20T17:02:10.599Z","avatar_url":"https://github.com/serverless-guru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Termination Protection Plugin\n\nCreated by Ryan Jones from [Serverless Guru](https://serverlessguru.com). Copyright Serverless Guru, LLC 2019. Released under the MIT license.\n\n## Overview and purpose\nThis plugin allows you to add AWS Cloudformation termination protection to your Serverless Framework stacks (serverless.yml).\n\nCurrently, the only way to enable termination protection is manually through the AWS Console or through the AWS CLI. This solution will allow you to skip doing either of those things.\n\nThis plugin fits directly into your existing Serverless Framework projects and it can also take arguments! The current arguments are `profile` and `stages`. Let's discuss these in more detail, below.\n\n## Installation\n\nTo install with npm, run this in your service directory:\n\n```\nnpm install --save-dev serverless-termination-protection\n```\n\nTo install with yarn, run this in your service directory:\n\n```\nyarn add serverless-termination-protection\n```\n\nThen add this to your `serverless.yml`:\n\n```\nplugins:\n - serverless-termination-protection\n```\n\n## Configuartion\n\nThe default is to add termination protection to every deployment when you install the plugin.\n\nFor more complex use cases, add an `serverlessTerminationProtection` section like this in your `serverless.yml`:\n\n```\ncustom:\n  serverlessTerminationProtection:\n    stages:\n      - prod\n      - dev\n```\n\nThe `stages` property represents the specific stages you want the termination protection to apply too. Let's look at some examples.\n\n## Examples\n\nFirst off, let's assume you want all deployments to have termination protection the `terminal command` will look like this:\n\n```\nsls deploy -v\n```\n\nAnd your `serverless.yml` will only need this:\n\n```\nplugins:\n  - serverless-termination-protection\n```\n\nFor more complex use cases, let's assume we want to only apply termination protection to specific stages. The `terminal command` will look like this:\n\n```\nsls deploy --stage prod -v\n```\n\nAnd your `serverless.yml` will only need this:\n\n```\nservice: ...\n\nprovider:\n  name: aws\n  profile: ${opt:profile, \"default\"}\n  region: ${opt:region, \"us-west-2\"}\n  stage: ${opt:stage, \"dev\"}\n\nplugins:\n  - serverless-termination-protection\n\ncustom:\n  serverlessTerminationProtection:\n    stages:\n      - prod\n      - alpha\n\nfunctions:\n  ...\n```\n\nAs you can see we have the `stages` option as an array of string values. Where `prod` and `alpha` are the stages to add termination protection too.\n\nLet's imagine we deployed to `dev` with this terminal command:\n\n```\nsls deploy --stage dev -v\n```\n\nThe plugin will compare the stage you passed `dev` with the `stages` you listed under `serverlessTerminationProtection` in your `serverless.yml`.\n\nThe hook that is being used for the `serverless-termination-plugin` is `after:deploy:finalize`. Which means that after the Serverless Framework finishes deploying your service the `serverless-termination-plugin` will then add termination protection to your stack if it meets the conditions you specified.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-guru%2Fserverless-termination-protection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless-guru%2Fserverless-termination-protection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-guru%2Fserverless-termination-protection/lists"}