This is the design and implementation of providing simple and reliable terraform (tf14) commands for devs ops that build, commit and push .tf files. Terraform has hidden functionalities that devs may not be familar with. It shouldn't be the dev's responsibility to remember multiple commands every time they make a commit to terraform servers. That's why I decided to create a bash program orchestrated by python for devs to only remember a few commands.
Usage: tf14 [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
apply Apply tf14 data to server.
clean Clean unnecessary tf14 files.
edit Edit the provided helper files.
init Test and fmt .tf code.
plan Make plans to local repo.
The main directory that requires attention is the src/tf14 directory:
-
api_methods.py - This files provides the users to see incoming messages by creating a global logger variable.
-
cli_utils.py - Creates essential utilities for
cli.pythat performs the system commands of the program. -
cli.py - Bootstrap function for
cli_utils.py. This file mainly interacts with the user by running the commandtf14.
NOTE : This code has only been tested on the latest Ubuntu operating system. Run on macOS at your own risk, but this program is not operational in Windows.
NOTE: You must have python3 installed to run these commands. Infomation about python can be found here.
Follow these instructions if you want to run the files using venv
./build.sh
# run venv
source tf14_env/bin/activate
# use the program as intended
tf14 [OPTIONS]
./clean.sh
# exit the virtual environment
deactivate
Name - Rooklyn Kline
Email - rkline2@umbc.edu