@agilecustoms/envctl 1.20.2 → 1.20.3
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.
|
@@ -210,7 +210,10 @@ export class TerraformAdapter {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
async apply(env, args) {
|
|
213
|
-
|
|
213
|
+
const noPlan = args.every(arg => arg.startsWith('-'));
|
|
214
|
+
if (noPlan) {
|
|
215
|
+
args = this.tfArgs(env, args);
|
|
216
|
+
}
|
|
214
217
|
logger.info('Running: terraform apply ' + args.join(' ') + '\n');
|
|
215
218
|
try {
|
|
216
219
|
await this._apply(args, env.ttl, 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilecustoms/envctl",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.3",
|
|
4
4
|
"description": "node.js CLI client for manage environments",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"terraform wrapper",
|
|
@@ -41,12 +41,14 @@
|
|
|
41
41
|
"run-version": " npm run it -- --version",
|
|
42
42
|
"run-configure": "npm run it -- configure",
|
|
43
43
|
"run-logs": " npm run it -- logs",
|
|
44
|
+
"-t1-": "",
|
|
44
45
|
"t1-desc": "dev env (fully fledged ~/.envctl/default.json)",
|
|
45
46
|
"t1": "CWD=../tt-core npm run it --",
|
|
46
47
|
"t1-init": "cd ../tt-core && terraform init -upgrade -backend-config=key=t1 -reconfigure",
|
|
47
48
|
"t1-status": "npm run t1 -- status --verbose",
|
|
48
49
|
"t1-apply": " npm run t1 -- apply --auto-approve",
|
|
49
50
|
"t1-delete": "npm run t1 -- delete",
|
|
51
|
+
"-t2-": "",
|
|
50
52
|
"t2-desc": "ephemeral env in CI (must have ENVCTL_API_KEY_ in env vars)",
|
|
51
53
|
"t2": "CWD=../tt-core CI=true ENVCTL_HOME=non-existing ENVCTL_API_KEY=\"$ENVCTL_API_KEY_\" npm run it --",
|
|
52
54
|
"t2-create": "npm run t2 -- create-ephemeral t2",
|
|
@@ -54,12 +56,14 @@
|
|
|
54
56
|
"t2-plan": " npm run t2 -- plan -var=env_size=min -var=env=t2 -out=plan",
|
|
55
57
|
"t2-apply": " npm run t2 -- apply plan",
|
|
56
58
|
"t2-delete": "npm run t2 -- delete",
|
|
57
|
-
"t3-
|
|
59
|
+
"-t3-": "",
|
|
60
|
+
"t3-desc": "dev env destroy",
|
|
58
61
|
"t3": "CWD=../tt-core npm run it --",
|
|
59
62
|
"t3-init": "cd ../tt-core && terraform init -upgrade -backend-config=key=t3 -reconfigure",
|
|
60
|
-
"t3-
|
|
61
|
-
"t3-
|
|
62
|
-
"t3-
|
|
63
|
+
"t3-status": " npm run t3 -- status",
|
|
64
|
+
"t3-apply": " npm run t3 -- apply --auto-approve -var=env_size=min",
|
|
65
|
+
"t3-destroy": "npm run t3 -- destroy -var=env_size=min --auto-approve",
|
|
66
|
+
"-tt-": "",
|
|
63
67
|
"tt-desc": "deploy TT project from local machine",
|
|
64
68
|
"tt": "CWD=../tt-gitops AWS_PROFILE=ac-tt-dev-deployer npm run it --",
|
|
65
69
|
"run-init": "cd ../tt-gitops && terraform init -upgrade -backend-config=key=laxa1986 -reconfigure",
|