as-cleaner

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2016 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

as-cleaner

Delete Amazon EBS Snapshot for AMI

Installation

Download from https://github.com/tkuchiki/as-cleaner/releases

Usage

$ ./as-cleaner --help
usage: as-cleaner [<flags>]

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址