A Serverless Framework plugin for removing resources from your CloudFormation template before deployment.
npm install serverless-remove-resources``bash`
npm install serverless-remove-resources
Then, add serverless-remove-resources to the plugins array in your Serverless service's serverless.yml file:
`bash`
plugins:
- serverless-remove-resources
key in your serverless.yml file. The value should be a list of resource logical names.For example:
`bash
custom:
serverless-remove-resources:
- IamRoleLambdaExecution
``This will remove the IamRoleLambdaExecution resource from your CloudFormation template before deployment.