route53cleaner

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: MIT Imports: 5 Imported by: 1

README

Route53 Cleaner

Suggests records that could be deleted from your AWS Route53 hosted zones.

Release Software License Travis Go Report Card Godoc SayThanks.io

Install

Via homebrew (macOS only):
$ brew install caarlos0/tap/route53-cleaner
Via go get:
$ go get github.com/caarlos0/route53-cleaner
Manually

Download the latest release, extract it and execute the route53-cleaner binary.

Usage

Just running it will show a list of records you may remove:

$ route53-cleaner

How it works

Route53 Cleaner scans several resources from your account and check your records against those resources addresses, compiling a list of records that might not be used.

These records are then printed to the user in an easy-to-pipe format.

Please note that Route53 Cleaner will never change anything in your account. You can check the code or give it read-only keys if you do not trust that affirmation (I won't blame you for that).

Auth

Either by having a ~/.aws/credentials, ~/.aws/config or the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables exported.

More info can be found in the aws-sdk-go documentation.

Contributing

Please refer to our contributing guidelines.

Documentation

Overview

Package route53cleaner can find unused entries on Route53

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnusedRecord added in v0.2.0

type UnusedRecord struct {
	Name, Type, Addr string
}

UnusedRecord represents a probably unused record that may be removed

func FindUnused added in v0.2.0

func FindUnused(sess *session.Session) (removables []UnusedRecord, err error)

FindUnused returns records that are not being used and can probably be removed.

Directories

Path Synopsis
Package addrs finds DNS names of all AWS resource.
Package addrs finds DNS names of all AWS resource.
cmd
Package routes can find all route53 records of a given account
Package routes can find all route53 records of a given account

Jump to

Keyboard shortcuts

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