scanner

command
v0.0.0-...-e842130 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MPL-2.0 Imports: 15 Imported by: 0

README

Motivation

Why do I need this "Scanner" ?

Consider a a case when you would like to deploy some destructive test. In order to re-build your infrastructure in the quickest way possible, Scanner scan your infrastructure and generate a file to back up your current status. By rebuilding your infrastructure, you just need to command terraform apply with this back up file. (easy-peasy.....)

Why not just copy the current configuration file ?

You can.

However, most of customers begin their journey with Terraform when they already have some existing resources.
As is discussed in issue#15608. Currently , Terraform can not take over existing resources while generating a back up file. This means even though you have imported some existing resources, you probably still need to full fill your configuration file manually. For a large scale of infrastructure , it does not seems easy.

To implement a complete, fully tested "Scanner" is not easy, since a complex dependency among resources is included.
But at least I could implement a naive one. Scripts on scanner is pretty easy and naive, if you have any furthur plan and suggestions, just leave it :-)

How to use ?

1.Export keys to environment

export access_key = <Your_access_key>
export secret_key = <Your_secret_key>
export region = <Your_region>

2. Launch

make scan

After Scanner finished, infrastructures will be saved in scanner/jdcloud.tf

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