An open API service indexing awesome lists of open source software.

https://github.com/cloudputation/terrafactor

Add Terraform functionalities to your software
https://github.com/cloudputation/terrafactor

Last synced: 2 months ago
JSON representation

Add Terraform functionalities to your software

Awesome Lists containing this project

README

          

# TerraFactor
Add Terraform functionalities to your software

## Description
Provide Terraform like output functionality that you can integrate to your software.
Takes JSON objects and outputs them in a Terraform-like format. It processes the structure, applying colored prefixes (`+` for creation, `-` for destruction) to indicate changes, and formats the output with customizable indentation.

## Module installation
- Install module: `go get github.com/cloudputation/terrafactor`
- Import the module in application code: `import "github.com/cloudputation/terrafactor"`

## Terraform Output Usage
operationTag should be set to either `create` or `destroy`.

## Error Handling
Not providing a value for `operationTag` will return the following error: `invalid operation: . Supported operations are 'create' or 'destroy'`