1.2.3 • Published 2 years ago

devops-scripts v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Devops Scripts

Collection of scripts to ease out some tasks duriing devops pipelines.

Instalation

npm i devops-scripts

Or Install globally

Recomended way is to install this module globally in your dev or ci/cd environment.

npm i -g devops-scripts

terraform-cloud / tfc

Terraform cloud scripts

Environment Variables

  • TFC_TOKEN : Terraform cloud Access Token
  • TFC_WORKSPACE : Terraform cloud worksapce id. e.g. ws-xxxxxxxxxx

Usage:

terraform-cloud <command> <sucommand> [arguments]

OR

tfc <command> <sucommand> [arguments]

Available Commands and Subcommands:

  • workspace

    • get - Prints the provided workspace as output

      Example:

      $ tfc workspace get orgnization/workspace
    • list - List all workspaces in Organization.

      Note: In case of missing organization name, Throws an error and outputs all available organizations in the account.

      Example:

      $ tfc workspace list
      
      Error: Organization Missing
      Please pass organization from list below:
      - OrgA
      - OrgB
    Terraform Cloud - Devops Scripts

    Github: https://github.com/phenixcoder/devops-scripts

    Usage:
      terraform-cloud <resource> <action> [arguments]
    OR
      tfc <resource> <action> [arguments]

  ```
  OR
  ```bash
  $ tfc workspace list orgnization
  ```
  • output
    • get - Get the first output from latest state and prints as output
    • list - Lista all output in the state.
  • state
    • get - Get the latest state and prints as output
1.2.3

2 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago