Package Exports
- terraform-cloud
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (terraform-cloud) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
terraform-cloud
Terraform Cloud REST API client for javascript.
NOTE: This is a work in progress, please review the current implementation.
Instalation
yarn add terraform-cloud # With Yarn
npm install terraform-cloud # With NPM
Usage
import { TerraformCloud } from 'terraform-cloud'
// Set a your terraform cloud API token
const terraformClient = new TerraformCloud('terraform-api-token')
// Make an API call
// Get Account Information
terraformClient.getAccount().then(account => {
// handle account data
})
// Get Run information by run id (ex: 'run-xis032ss)
terraformClient.getRun('run-id').then(run => {
// handle run data
})
Current implementation
- Account details
- Runs by workspace
- Run by ID
TODO
- Workspace by ID
- Workspaces
- ...
Contributing
We would love you to contribute to terraform-cloud
, pull requests are very welcome! Please see CONTRIBUTING.md for more information.