Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Terraform

A Terraform class bound to a configuration, providing methods for all commands.

Hierarchy

  • Terraform

Index

Constructors

constructor

Properties

Private config

config: IConfig

Methods

apply

  • apply(dirOrPlan?: undefined | string, opts?: Partial<IApplyOpts>): Promise<string>
  • Parameters

    • Optional dirOrPlan: undefined | string
    • Optional opts: Partial<IApplyOpts>

    Returns Promise<string>

destroy

  • destroy(dir?: undefined | string, opts?: Partial<IDestroyOpts>): Promise<string>
  • Parameters

    • Optional dir: undefined | string
    • Optional opts: Partial<IDestroyOpts>

    Returns Promise<string>

exec

  • exec(cmd: Command): Promise<string>

fmt

  • fmt(dir?: undefined | string, opts?: Partial<IFmtOpts>): Promise<string>
  • Parameters

    • Optional dir: undefined | string
    • Optional opts: Partial<IFmtOpts>

    Returns Promise<string>

forceUnlock

  • forceUnlock(lockId: string, dir?: undefined | string, opts?: Partial<IForceUnlockOpts>): Promise<string>
  • Parameters

    • lockId: string
    • Optional dir: undefined | string
    • Optional opts: Partial<IForceUnlockOpts>

    Returns Promise<string>

get

  • get(dir?: undefined | string, opts?: Partial<IGetOpts>): Promise<string>
  • Parameters

    • Optional dir: undefined | string
    • Optional opts: Partial<IGetOpts>

    Returns Promise<string>

graph

  • graph(dir?: undefined | string, opts?: Partial<IGraphOpts>): Promise<string>
  • Parameters

    • Optional dir: undefined | string
    • Optional opts: Partial<IGraphOpts>

    Returns Promise<string>

import

  • import(src: string, dest: string, opts?: Partial<IImportOpts>): Promise<string>
  • Parameters

    • src: string
    • dest: string
    • Optional opts: Partial<IImportOpts>

    Returns Promise<string>

init

  • init(dir?: undefined | string, opts?: Partial<IInitOpts>): Promise<string>
  • Parameters

    • Optional dir: undefined | string
    • Optional opts: Partial<IInitOpts>

    Returns Promise<string>

output

  • output(name?: undefined | string, opts?: Partial<IOutputOpts>): Promise<string>
  • Parameters

    • Optional name: undefined | string
    • Optional opts: Partial<IOutputOpts>

    Returns Promise<string>

plan

  • plan(dirOrPlan?: undefined | string, opts?: Partial<IPlanOpts>): Promise<string>
  • Parameters

    • Optional dirOrPlan: undefined | string
    • Optional opts: Partial<IPlanOpts>

    Returns Promise<string>

providers

  • providers(configPath?: undefined | string): Promise<string>
  • Parameters

    • Optional configPath: undefined | string

    Returns Promise<string>

push

  • push(path?: undefined | string, opts?: Partial<IPushOpts>): Promise<string>
  • Parameters

    • Optional path: undefined | string
    • Optional opts: Partial<IPushOpts>

    Returns Promise<string>

refresh

  • refresh(dir?: undefined | string, opts?: Partial<IRefreshOpts>): Promise<string>
  • Parameters

    • Optional dir: undefined | string
    • Optional opts: Partial<IRefreshOpts>

    Returns Promise<string>

show

  • show(path?: undefined | string, opts?: Partial<IShowOpts>): Promise<string>
  • Parameters

    • Optional path: undefined | string
    • Optional opts: Partial<IShowOpts>

    Returns Promise<string>

stateList

  • stateList(addresses?: string[], opts?: Partial<IStateListOpts>): Promise<string>

stateMv

  • stateMv(src: string, dest: string, opts?: Partial<IStateMvOpts>): Promise<string>
  • Parameters

    • src: string
    • dest: string
    • Optional opts: Partial<IStateMvOpts>

    Returns Promise<string>

statePull

  • statePull(): Promise<string>

statePush

  • statePush(path: string, opts?: Partial<IStatePushOpts>): Promise<string>

stateRm

  • stateRm(addresses: string[], opts?: Partial<IStateRmOpts>): Promise<string>

stateShow

  • stateShow(address: string, opts?: Partial<IStateShowOpts>): Promise<string>

taint

  • taint(name: string, opts?: Partial<ITaintOpts>): Promise<string>

untaint

  • untaint(name: string, opts?: Partial<IUntaintOpts>): Promise<string>

validate

  • validate(dir?: undefined | string, opts?: Partial<IValidateOpts>): Promise<string>
  • Parameters

    • Optional dir: undefined | string
    • Optional opts: Partial<IValidateOpts>

    Returns Promise<string>

workspaceDelete

workspaceList

  • workspaceList(): Promise<string>

workspaceNew

workspaceSelect

  • workspaceSelect(name: string): Promise<string>
  • Parameters

    • name: string

    Returns Promise<string>

workspaceShow

  • workspaceShow(): Promise<string>

Generated using TypeDoc