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
- Host: GitHub
- URL: https://github.com/cloudputation/terrafactor
- Owner: cloudputation
- License: mit
- Created: 2024-10-07T19:02:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-09T20:37:10.000Z (over 1 year ago)
- Last Synced: 2024-11-24T05:00:11.225Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'`