Skip to content

Commit

Permalink
Update version and README
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-usman-108 committed May 28, 2024
1 parent 1241ee5 commit c721c5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ Here is a simple example to get you started:
```typescript
import { Terraform } from 'terraform-tool';

const config = 'terraform configuration folder name'

/* terraform/main.tf
I have a terraform folder inside my project root directory and inside it main.tf file resides
You need to pass only the folder name or path only not the file name.
As my file path is 'terraform/main.tf', I only pass 'terraform' in Terraform() function below
*/

const tf = new Terraform('terraform');

tf.init()
Expand All @@ -37,6 +45,7 @@ tf.init()
.then(() => tf.apply())
.then(output => console.log('Apply:', output))
.catch(error => console.error('Error:', error));
// Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

tf.destroy();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terraform-tool",
"version": "1.0.0",
"version": "1.0.1",
"description": "NPM package to provision cloud infrastructure as code (IaC) using terraform",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit c721c5e

Please sign in to comment.