awstfy is command line helper for AWS Terraform project management.
Installation
npm i -g @recarnot/awstfy-cli
Demo
Configuration | AWS Profiles | Environments |
---|---|---|
Variables | Terraform Cloud | Resources |
---|---|---|
Terraform | Clone | Auto completion |
---|---|---|
Silent commands
!! Work in progress !!
You can use some commands in silent mode to allow script or automation process. Here is a quick dirty demo :
Usage
Usage: awstfy <command> <subcommand>
Top level commands:
configure Configures project.
provider Configures default Terraform provider for this project.
backend Configures Terraform backend for this projet.
clone Clones GIT repository in current directory.
console Opens AWS Management Console.
version Shows current version.
help Displays help.
init Terraform init.
plan Terraform plan.
apply Terraform apply.
destroy Terraform destroy.
profile <command>: Manages AWS profiles
profile configure Creates or updates AWS profile.
profile list Lists AWS profiles.
env <command>: Manages Terraform workspaces (environments)
env select Seclect a Terraform workspace.
env list Retreives Terraform workspaces.
env show Retreives current Terraform workspace.
env new Creates a new Terraform workspace.
var <command>: Manages environment variables
var add Creates a new variable.
var list Lists variables.
var update Updates variable.
var delete Deletes variable.
cloud <command>: Manages Terraform Cloud
cloud init Configures Terrafom Cloud access and pulls organizations.
add <resource>: Add Terraform resources
add vpc Manages VPC.
add storage Manages Storage.
add sns Manages SNS Topic.
add dns Manages Hosted zone.
add state Manages Remote state connection.
add provider Manages Provider alias.
Auto completion
awstfy offer auto completion on Linux based systems :
- bash
✔ - zsh
✔ - fish (not test yet)
[testcli]$ awstfy setup-completion
✔ awstfy auto completion process ok.
You can source : /home/recarnot/.awstfy/awstfy-completion.sh
[testcli]$ source ~/.awstfy/awstfy-completion.sh