@agilecustoms/envctl 1.11.0 → 1.11.1
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.
|
@@ -63,7 +63,7 @@ export class EnvService extends BaseService {
|
|
|
63
63
|
}
|
|
64
64
|
const newEnv = env === null;
|
|
65
65
|
await this.lockTerraform(env, newEnv);
|
|
66
|
-
await this.terraformAdapter.plan(env ?? { key }, tfArgs);
|
|
66
|
+
await this.terraformAdapter.plan(env ?? { key, ephemeral: false }, tfArgs);
|
|
67
67
|
}
|
|
68
68
|
async createEphemeral(key) {
|
|
69
69
|
const createEnv = { key };
|
|
@@ -120,7 +120,7 @@ export class TerraformAdapter {
|
|
|
120
120
|
tfArgs(env, args, vars = []) {
|
|
121
121
|
const varDefs = this.getVarDefs();
|
|
122
122
|
const argVars = this.getArgVars(args);
|
|
123
|
-
const specialFields = {
|
|
123
|
+
const specialFields = { env: env.key, ephemeral: env.ephemeral };
|
|
124
124
|
const extraArgs = [];
|
|
125
125
|
for (const name of ['env', 'ephemeral']) {
|
|
126
126
|
if (varDefs[name] && !argVars[name]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilecustoms/envctl",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "node.js CLI client for manage environments",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"terraform wrapper",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"run-core-status": " CWD=../tt-core npm run it -- status --verbose",
|
|
46
46
|
"run-core-plan": " CWD=../tt-core npm run it -- plan -out=.terraform/plan",
|
|
47
47
|
"run-core-deployp": "CWD=../tt-core npm run it -- deploy .terraform/plan",
|
|
48
|
-
"run-core-deploy": " CWD=../tt-core npm run it -- deploy
|
|
48
|
+
"run-core-deploy": " CWD=../tt-core npm run it -- deploy",
|
|
49
49
|
"run-core-delete": " CWD=../tt-core npm run it -- delete",
|
|
50
50
|
"run-core-destroy": "CWD=../tt-core npm run it -- destroy",
|
|
51
51
|
"run-core-logs": " CWD=../tt-core npm run it -- logs",
|
|
52
52
|
"*": "",
|
|
53
53
|
"run-init": "cd ../tt-gitops && terraform init -upgrade -backend-config=key=laxa1986 -reconfigure",
|
|
54
54
|
"run-status": " CWD=../tt-gitops npm run it -- status",
|
|
55
|
-
"run-plan": " AWS_PROFILE=ac-tt-dev-deployer CWD=../tt-gitops npm run it -- plan -var
|
|
55
|
+
"run-plan": " AWS_PROFILE=ac-tt-dev-deployer CWD=../tt-gitops npm run it -- plan -var-file=versions.tfvars",
|
|
56
56
|
"run-deploy": " AWS_PROFILE=ac-tt-dev-deployer CWD=../tt-gitops npm run it -- deploy -var-file=versions.tfvars",
|
|
57
57
|
"run-delete": " CWD=../tt-gitops npm run it -- delete",
|
|
58
|
-
"run-destroy": "AWS_PROFILE=ac-tt-dev-destroyer CWD=../tt-gitops npm run it -- destroy -var
|
|
58
|
+
"run-destroy": "AWS_PROFILE=ac-tt-dev-destroyer CWD=../tt-gitops npm run it -- destroy -var-file=versions.tfvars",
|
|
59
59
|
"-": "",
|
|
60
60
|
"run-ephemeral-create": " npm run it -- create-ephemeral --key test",
|
|
61
61
|
"run-ephemeral-init": "cd ../tt-gitops && terraform init -upgrade -backend-config=key=test -reconfigure",
|