serverless-remove-resources

1.0.0 • Public • Published

serverless-remove-resources

A Serverless Framework plugin for removing resources from your CloudFormation template before deployment.

Installation

To install this plugin, run:

npm install serverless-remove-resources

Then, add serverless-remove-resources to the plugins array in your Serverless service's serverless.yml file:

plugins:
  - serverless-remove-resources

Usage

To use this plugin, specify the resources you want to delete under the custom.serverless-remove-resources key in your serverless.yml file. The value should be a list of resource logical names.

For example:

custom:
  serverless-remove-resources:
    - IamRoleLambdaExecution

This will remove the IamRoleLambdaExecution resource from your CloudFormation template before deployment.

Note

This plugin should be used with caution, as deleting resources can have unintended consequences. Make sure to thoroughly test any changes made using this plugin before deploying to production.

Contribution

We welcome contributions to this project. If you are interested in contributing, please feel free to submit a pull request.

Package Sidebar

Install

npm i serverless-remove-resources

Weekly Downloads

1,902

Version

1.0.0

License

MIT

Unpacked Size

3.81 kB

Total Files

4

Last publish

Collaborators

  • edujugon