-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clearing AMI without tag #69
Comments
Apparently not. Bummer. |
I think you could pipe the command output, something like
And then you could copy/paste the CLI commands back into a console. I think after that you could then use Edit: just tried this and it all worked as above |
I think you can, by pointing the ❯ amicleaner --full-report --keep-previous 10 --mapping-key name --mapping-values tosip
Default values : ==>
mapping_key : name
mapping_values : ['tosip']
excluded_mapping_values : []
keep_previous : 10
ami_min_days : -1
Retrieving AMIs to clean ...
tosip
+-----------------------+-------------------------------------------------+--------------------------+
| AMI ID | AMI Name | Creation Date |
+-----------------------+-------------------------------------------------+--------------------------+
| ami-02eabc57a5f347de1 | tosip-main-14-ec2-ebs200-20181108T084515Z | 2018-11-08T08:58:22.000Z |
| ami-0d24a5c4950e88866 | tosip-main-14-ec2-ebs200-20181108T150902Z | 2018-11-08T15:21:59.000Z |
| ami-0a5e8c0adb7f23435 | tosip-main-14-ec2-ebs200-20181126T142411 | 2018-11-26T14:37:46.000Z |
... It would appear that it does require you to know a (part of) the name of the instances you want to clean up. |
is it possible to selected mapping-key = "no-tags"
The text was updated successfully, but these errors were encountered: