Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkuchiki/as-cleaner
Delete Amazon EBS Snapshot for deregistered AMI
https://github.com/tkuchiki/as-cleaner
ami aws cleaner cli ebs golang snapshot
Last synced: about 1 month ago
JSON representation
Delete Amazon EBS Snapshot for deregistered AMI
- Host: GitHub
- URL: https://github.com/tkuchiki/as-cleaner
- Owner: tkuchiki
- License: mit
- Created: 2016-09-16T01:01:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-16T01:43:38.000Z (over 8 years ago)
- Last Synced: 2024-06-20T14:21:30.192Z (7 months ago)
- Topics: ami, aws, cleaner, cli, ebs, golang, snapshot
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# as-cleaner
Delete Amazon EBS Snapshot for deregistered AMI# Installation
Download from https://github.com/tkuchiki/as-cleaner/releases
# Usage
```
$ ./as-cleaner --help
usage: as-cleaner []Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-f, --filters=FILTERS filter tags (Name=xxx,Values=yyy,zzz Name=xxx,Values=yyy...)
--begin-time=BEGIN-TIME snapshot start time begin
--end-time=END-TIME snapshot start time end
-t, --timezone=TIMEZONE timezone (default: local timezone)
--no-dry-run disable dry-run mode
--rm-volume remove volume
--access-key=ACCESS-KEY AWS Access Key ID
--secret-key=SECRET-KEY AWS Secret Access Key
--profile=PROFILE specific profile from your credential file
--config=CONFIG AWS shared config file
--credentials=CREDENTIALS AWS shared credentials file
--region=REGION AWS region
--version Show application version.
```# Examples
## Dry run
```
$ ./as-cleaner
dry run succeeded, ami-xxxxxxxx snap-xxxxxxxx
dry run succeeded, ami-yyyyyyyy snap-yyyyyyyy snap-yyyyyyyy
``````
$ ./as-cleaner --rm-volume
dry run succeeded, ami-xxxxxxxx snap-xxxxxxxx(vol-xxxxxxxx)
dry run succeeded, ami-yyyyyyyy snap-yyyyyyyy(vol-yyyyyyyy) snap-zzzzzzzz(vol-zzzzzzzz)
```## Run
```
$ ./as-cleaner --no-dry-run
deleted ami-xxxxxxxx snap-xxxxxxxx
deleted ami-yyyyyyyy snap-yyyyyyyy snap-yyyyyyyy
```