@ostro-cloud/cli 1.0.0-alpha.5 → 1.0.0-alpha.6
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/bin/ostro.js +8 -8
- package/lib/client.js +4 -4
- package/package.json +1 -1
package/bin/ostro.js
CHANGED
|
@@ -194,14 +194,14 @@ program
|
|
|
194
194
|
// Doctor
|
|
195
195
|
const SERVICES = [
|
|
196
196
|
{ name: 'Unified Console', host: 'console.ostro-cloud.com', path: '/api/health' },
|
|
197
|
-
{ name: 'Kubernetes Engine', host: '
|
|
198
|
-
{ name: 'Ostro Serverless', host: '
|
|
199
|
-
{ name: 'Ostro Bucket S3', host: '
|
|
200
|
-
{ name: 'Ostro Formation', host: '
|
|
201
|
-
{ name: 'API Gateway', host: '
|
|
202
|
-
{ name: 'Ostro DNS', host: '
|
|
203
|
-
{ name: 'Message Broker', host: '
|
|
204
|
-
{ name: 'CloudWatch Logs', host: '
|
|
197
|
+
{ name: 'Kubernetes Engine', host: 'eks.ostro-cloud.com', path: '/api/health' },
|
|
198
|
+
{ name: 'Ostro Serverless', host: 'serverless.ostro-cloud.com', path: '/api/health' },
|
|
199
|
+
{ name: 'Ostro Bucket S3', host: 's3.ostro-cloud.com', path: '/api/health' },
|
|
200
|
+
{ name: 'Ostro Formation', host: 'formation.ostro-cloud.com', path: '/health' },
|
|
201
|
+
{ name: 'API Gateway', host: 'apigateway.ostro-cloud.com', path: '/api/health' },
|
|
202
|
+
{ name: 'Ostro DNS', host: 'route53.ostro-cloud.com', path: '/api/health' },
|
|
203
|
+
{ name: 'Message Broker', host: 'mq.ostro-cloud.com', path: '/api/health' },
|
|
204
|
+
{ name: 'CloudWatch Logs', host: 'logs.ostro-cloud.com', path: '/api/health' }
|
|
205
205
|
];
|
|
206
206
|
|
|
207
207
|
async function checkService(svc) {
|
package/lib/client.js
CHANGED
|
@@ -38,12 +38,12 @@ const SERVICE_PATHS = {
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Returns the base URL for a service.
|
|
41
|
-
* Pattern: https
|
|
41
|
+
* Pattern: https://<service>.ostro-cloud.com
|
|
42
42
|
*/
|
|
43
|
-
function defaultServiceUrl(service, _region,
|
|
43
|
+
function defaultServiceUrl(service, _region, domain) {
|
|
44
44
|
const seg = SERVICE_PATHS[service] || service;
|
|
45
|
-
const
|
|
46
|
-
return
|
|
45
|
+
const d = domain || process.env.OSTRO_DOMAIN || DEFAULT_CLOUD_DOMAIN;
|
|
46
|
+
return `https://${seg}.${d}`;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
function getStoredConfig() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostro-cloud/cli",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"description": "Enterprise Command Line Interface (CLI) for Ostro Cloud Serverless, S3 Buckets, Kubernetes, and CloudFormation Orchestration",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|