@agilecustoms/envctl 1.19.0 → 1.19.2
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.
|
@@ -79,6 +79,9 @@ export class HttpClient {
|
|
|
79
79
|
if (response.status === 422) {
|
|
80
80
|
throw new BusinessException(message);
|
|
81
81
|
}
|
|
82
|
+
if (response.status >= 500) {
|
|
83
|
+
logger.info('API Gateway request ID: ' + response.headers.get('x-amzn-requestid'));
|
|
84
|
+
}
|
|
82
85
|
throw new HttpException(`status: ${response.status}, ` + message);
|
|
83
86
|
}
|
|
84
87
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { confirm } from '@inquirer/prompts';
|
|
2
1
|
import { Cli } from '../client/Cli.js';
|
|
3
2
|
import { EnvApiClient } from '../client/index.js';
|
|
4
3
|
import { KnownException } from '../exceptions.js';
|
|
@@ -106,15 +105,6 @@ export class EnvService extends BaseService {
|
|
|
106
105
|
this.checkDir(env);
|
|
107
106
|
this.handleDeleteStatuses(env);
|
|
108
107
|
const status = env.status;
|
|
109
|
-
if (status === EnvStatus.Deploying || status === EnvStatus.Updating) {
|
|
110
|
-
const message = `Env status is ${status}, likely due to an error from a previous run\n
|
|
111
|
-
Do you want to proceed with deployment?`;
|
|
112
|
-
const answerYes = await confirm({ message });
|
|
113
|
-
if (!answerYes) {
|
|
114
|
-
logger.info('Aborting deployment');
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
108
|
if (status === EnvStatus.Init || status === EnvStatus.Active) {
|
|
119
109
|
logger.info(`Env status is ${status}`);
|
|
120
110
|
await this.lockTerraform(env);
|