Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g14a/tf
A CLI Tool to easily generate your Terraform configuration
https://github.com/g14a/tf
aws cli golang promptui terraform
Last synced: 28 days ago
JSON representation
A CLI Tool to easily generate your Terraform configuration
- Host: GitHub
- URL: https://github.com/g14a/tf
- Owner: g14a
- License: apache-2.0
- Created: 2020-12-08T04:37:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T05:45:08.000Z (over 3 years ago)
- Last Synced: 2024-09-27T19:21:01.725Z (about 1 month ago)
- Topics: aws, cli, golang, promptui, terraform
- Language: Go
- Homepage:
- Size: 487 KB
- Stars: 19
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Tf
Tf is a command line tool to easily generate your Terraform configuration with an interactive prompt.![OpenSource](https://img.shields.io/badge/Open%20Source-000000?style=for-the-badge&logo=github)
![go](https://img.shields.io/badge/-Written%20In%20Go-00add8?style=for-the-badge&logo=Go&logoColor=ffffff)
![cli](https://img.shields.io/badge/-Build%20for%20CLI-000000?style=for-the-badge&logo=Powershell&logoColor=ffffff)[![Go Report Card](https://goreportcard.com/badge/github.com/g14a/tf)](https://goreportcard.com/report/github.com/g14a/tf)
[![Go Workflow Status](https://github.com/g14a/tf/workflows/Go/badge.svg)](https://github.com/g14a/tf/workflows/Go/badge.svg)
![CodeQL](https://github.com/g14a/tf/workflows/CodeQL/badge.svg)### Inspiration
Boredom in Covid-19### Installation
* ```go get github.com/g14a/tf```
* Or clone the master branch and run ```go install``` in the root directory.### Features
* Provider and resource support.
* Boilerplate code without having to go to the official docs.
* In place documentation of fields.
* Custom Terraform validators for ```int```,```bool```,```string```,```tags```
* Currently supports AWS EC2, S3, RDS, ELB, Lambda, VPC
* Less development overhead(I guess :blush:)[![asciicast](https://asciinema.org/a/p6e5I9fNEslVdcaKFAJHgRfdt.svg)](https://asciinema.org/a/p6e5I9fNEslVdcaKFAJHgRfdt)
### Fetching Boilerplate code for a resource
1. Search through the resources for a given provider
```shell
tf resource -p -b
```
2. Directly provide the resource as well
```shell
tf resource -p -r -b
```[![asciicast](https://asciinema.org/a/IMsCtr687FYZKkjJEuJHjMvhH.svg)](https://asciinema.org/a/IMsCtr687FYZKkjJEuJHjMvhH)
### Stability
This is a highly work in progress project, but I do my best to keep it stable so that things don't break.
Please report issues if you find this tool useful and I will try to make time to resolve them.### Contribution
Please check [CONTRIBUTION.md](https://github.com/g14a/tf/blob/main/CONTRIBUTING.md)### Roadmap
* Google and Azure
* Repeatable configuration