miguel-a-calles-mba / serverless-stack-termination-protection

Serverless plugin to update the CloudFormation stack termination protection.
MIT License
23 stars 4 forks source link

feat: Support pattern matching for stages #28

Open vicary opened 2 years ago

vicary commented 2 years ago

Hi! I want to use this plugin, but our production stages are a pattern with the pro- prefix.

It can be an enhanced stage option, either a glob pattern or regex should be backward compatible with the current string equality check.

Do you think it's a good idea to support pattern matching?

miguel-a-calles-mba commented 2 years ago

Hi @vicary, that sounds good to me. Feel free to submit a PR. Sorry for the late response.