New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

terraform-generator

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terraform-generator - npm Package Compare versions

Comparing version 5.3.1 to 5.3.2

2

dist/Util.js

@@ -122,2 +122,3 @@ "use strict";

}
exports.Util = Util;
_a = Util;

@@ -127,2 +128,1 @@ _Util_escapeChars = { value: [

] };
exports.Util = Util;
{
"name": "terraform-generator",
"version": "5.3.1",
"version": "5.3.2",
"author": "Chang Zhe Jiet",

@@ -35,2 +35,3 @@ "description": "Generate Terraform configurations with Node.js.",

"build": "rm -rf dist && tsc",
"build:watch": "tsc -w",
"prepublishOnly": "npm run build",

@@ -46,15 +47,15 @@ "postpublish": "rm -rf dist",

"devDependencies": {
"@types/jest": "^29.5.0",
"@types/shelljs": "^0.8.11",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"eslint": "^8.36.0",
"@types/jest": "^29.5.2",
"@types/shelljs": "^0.8.12",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"eslint": "^8.44.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-security": "^1.7.1",
"jest": "^29.5.0",
"ts-jest": "^29.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.23.27",
"typescript": "^5.0.2"
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
}
}

@@ -44,7 +44,7 @@ # **terraform-generator**

### **Import**
```javascript
```typescript
import { TerraformGenerator, Resource, map, fn } from 'terraform-generator';
```
or
```javascript
```typescript
const { TerraformGenerator, Resource, map, fn } = require('terraform-generator');

@@ -54,3 +54,3 @@ ```

### **Initialize TerraformGenerator**
```javascript
```typescript
const tfg = new TerraformGenerator({

@@ -64,3 +64,3 @@ required_version: '>= 0.12'

```javascript
```typescript
tfg.provider('aws', {

@@ -77,3 +77,3 @@ region: 'ap-southeast-1',

### **Convert resource to data source**
```javascript
```typescript
import { vpc as vpcDS } from 'other-terraform-generator-configuration';

@@ -85,3 +85,3 @@

### **Arguments**
```javascript
```typescript
{

@@ -140,3 +140,3 @@ string: 'str',

### **Attributes**
```javascript
```typescript
block.attr('id') // block id, string

@@ -152,3 +152,3 @@ block.id // convenience getter function, same as attr('id')

### **Variables**
```javascript
```typescript
// You can directly add multiple variable values.

@@ -167,3 +167,3 @@ tfg.addVars({

### **Merge multiple configurations**
```javascript
```typescript
// You can split your configuration into multiple files and merge them before you generate the final outcome.

@@ -174,3 +174,3 @@ tfg.merge(tfg2, tfg3);

### **Generate Terraform configuration**
```javascript
```typescript
// Generate Terraform configuration as string

@@ -189,3 +189,3 @@ const result = tfg.generate();

## **Example**
```javascript
```typescript
import TerraformGenerator, { Map, map } from 'terraform-generator';

@@ -192,0 +192,0 @@ import path from 'path';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc