1.2.3 • Published 4 years ago
devops-scripts v1.2.3
Devops Scripts
Collection of scripts to ease out some tasks duriing devops pipelines.
Instalation
npm i devops-scriptsOr 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 TokenTFC_WORKSPACE: Terraform cloud worksapce id. e.g.ws-xxxxxxxxxx
Usage:
terraform-cloud <command> <sucommand> [arguments]OR
tfc <command> <sucommand> [arguments]Available Commands and Subcommands:
workspaceget- Prints the provided workspace as outputExample:
$ tfc workspace get orgnization/workspacelist- 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
```outputget- Get the first output from latest state and prints as outputlist- Lista all output in the state.
stateget- Get the latest state and prints as output