plan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTable

func FormatTable(writer io.Writer, resources []Resource)

FormatTable takes an io.Writer (such as os.Stdout) and writes a nicely formatted cost table

Types

type Resource

type Resource struct {
	Address string
	Action  string
	Before  prices.ByID
	After   prices.ByID
}

Resource maps a Terraform resource to AWS pricing

func Calculate

func Calculate(tfPlan *terraform.PlanJSON) ([]Resource, error)

Calculate takes a TF plan, fetches AWS prices, and returns priced Resources

Jump to

Keyboard shortcuts

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