1.0.6 • Published 3 years ago

terraform-remote-state v1.0.6

Weekly downloads
-
License
WTFPL
Repository
-
Last release
3 years ago

Terraform Remote State

Micro library to fetch terraform state (right now only from S3 bucket)

Installing

Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

$ npm install terraform-remote-state

or yarn:

$ yarn add terraform-remote-state

Examples

The following program will read a Terraform state file stored in S3 from staging workspace:

const tf = require('terraform-remote-state')

const state = await tf.s3RemoteState("staging", {
    bucket: "pulumi-terraform-state-test",
    key: "test/terraform.tfstate",
    region: "us-west-2",
    profile: 'terraform-state'
});

const restApiId = state.getOutput("restapi_id");
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago