cloud-nuke icon indicating copy to clipboard operation
cloud-nuke copied to clipboard

[CLI] Allow dropping `--resource-type`

Open rhoboat opened this issue 5 years ago • 1 comments

Issue

Tools like the AWS CLI allow you specify a resource type without any flags, such as aws eks --blah-blah and aws s3 ls. In these commands eks and s3 are resource types, but you don't need any flags to say so.

Suggestion

Could we allow a syntax like cloud-nuke aws eks ... and cloud-nuke aws s3 ... ? This would ease the mental transition between using our tool and using the AWS CLI, and it also means less typing.

  • cloud-nuke aws s3 eks ec2 ... would mean nuke all of these resource types. Beats writing out --resource-type s3 --resource-type ekscluster --resource-type ec2 (that alone was annoying to type here!).

rhoboat avatar Nov 25 '20 01:11 rhoboat

You might want to continue to use the flag but add a parser after? --resource-type ekscluster,ec2,rds?

DMEvanCT avatar Jan 05 '21 00:01 DMEvanCT

Closing this ticket since we had no activies in this ticket for the past 3 years.

james00012 avatar Oct 24 '23 23:10 james00012