@powerlines/plugin-terraform 0.1.277 → 0.1.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -76,6 +76,46 @@ A package containing a Powerlines plugin to configure infrastructure and deploy
|
|
|
76
76
|
|
|
77
77
|
<!-- END doctoc -->
|
|
78
78
|
|
|
79
|
+
## Features
|
|
80
|
+
|
|
81
|
+
- Deploys infrastructure and configures projects with [Terraform IaC](https://www.terraform.io)
|
|
82
|
+
- Generates the stack name from the organization, workspace, project, and mode when `stackName` is omitted
|
|
83
|
+
- Supports `autoApproval` for non-interactive applies
|
|
84
|
+
- Supports `destroy: true` to run `terraform destroy` instead of `terraform apply`
|
|
85
|
+
- Runs through the `deploy` hook via the deploy command
|
|
86
|
+
|
|
87
|
+
## Usage
|
|
88
|
+
|
|
89
|
+
Install the plugin:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
pnpm add @powerlines/plugin-terraform
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Register it in `powerlines.config.ts`:
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
import { plugin as terraform } from "@powerlines/plugin-terraform";
|
|
99
|
+
import { defineConfig } from "powerlines/config";
|
|
100
|
+
|
|
101
|
+
export default defineConfig({
|
|
102
|
+
plugins: [terraform()]
|
|
103
|
+
});
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Run the deploy command. To set the stack and approval behavior:
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
export default defineConfig({
|
|
110
|
+
plugins: [
|
|
111
|
+
terraform({
|
|
112
|
+
stackName: "my-org-my-project-production",
|
|
113
|
+
autoApproval: true
|
|
114
|
+
})
|
|
115
|
+
]
|
|
116
|
+
});
|
|
117
|
+
```
|
|
118
|
+
|
|
79
119
|
## Installing
|
|
80
120
|
|
|
81
121
|
Using [pnpm](http://pnpm.io):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-terraform",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.279",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to deploy infrastructure using Terraform.",
|
|
6
6
|
"keywords": [
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"@stryke/types": "^0.12.44",
|
|
118
118
|
"defu": "^6.1.7",
|
|
119
119
|
"execa": "^9.6.1",
|
|
120
|
-
"powerlines": "^0.47.
|
|
120
|
+
"powerlines": "^0.47.217",
|
|
121
121
|
"shelljs": "^0.10.0",
|
|
122
122
|
"typescript": "^6.0.3"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
125
|
+
"@powerlines/plugin-plugin": "^0.12.630",
|
|
126
126
|
"@types/node": "^25.9.9"
|
|
127
127
|
},
|
|
128
128
|
"publishConfig": { "access": "public" },
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
|
|
130
130
|
}
|