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: 11 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 (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T05:45:08.000Z (almost 4 years ago)
- Last Synced: 2025-01-31T01:39:07.850Z (20 days 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.

[](https://goreportcard.com/report/github.com/g14a/tf)
[](https://github.com/g14a/tf/workflows/Go/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:)[](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
```[](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