@recarnot/awstfy-cli

0.7.11 • Public • Published

awstfy is command line helper for AWS Terraform project management.

Installation

npm i -g @recarnot/awstfy-cli

Demo

Configuration AWS Profiles Environments
asciicast asciicast asciicast
Variables Terraform Cloud Resources
asciicast asciicast asciicast
Terraform Clone Auto completion
asciicast asciicast asciicast

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 :

asciicast

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 

asciicast

Readme

Keywords

Package Sidebar

Install

npm i @recarnot/awstfy-cli

Weekly Downloads

1

Version

0.7.11

License

MIT

Unpacked Size

137 kB

Total Files

95

Last publish

Collaborators

  • romainecarnot