link2aws 1.0.11 → 1.0.13
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/link2aws.js +12 -2
- package/package.json +1 -1
package/link2aws.js
CHANGED
|
@@ -126,7 +126,16 @@ class ARN {
|
|
|
126
126
|
"certificate-authority": null,
|
|
127
127
|
},
|
|
128
128
|
"amplify": { // AWS Amplify
|
|
129
|
-
"apps":
|
|
129
|
+
"apps": () => {
|
|
130
|
+
if(this.resource.includes('/jobs/')) {
|
|
131
|
+
const resourceSplit = this.resource.split('/');
|
|
132
|
+
const appID = resourceSplit[0];
|
|
133
|
+
const branch = resourceSplit[2];
|
|
134
|
+
const job = resourceSplit[resourceSplit.length - 1].replace(/^0+/, '');
|
|
135
|
+
return `https://${this.region}.${this.console}/amplify/home?region=${this.region}#/${appID}/${branch}/${job}`;
|
|
136
|
+
}
|
|
137
|
+
return null;
|
|
138
|
+
},
|
|
130
139
|
},
|
|
131
140
|
"apigateway": { // Manage Amazon API Gateway
|
|
132
141
|
"": null,
|
|
@@ -251,6 +260,7 @@ class ARN {
|
|
|
251
260
|
"association": null,
|
|
252
261
|
},
|
|
253
262
|
"codepipeline": { // AWS CodePipeline
|
|
263
|
+
"": () => `https://${this.region}.${this.console}/codesuite/codepipeline/pipelines/${this.resource}/view?region=${this.region}`,
|
|
254
264
|
"actiontype": null,
|
|
255
265
|
"webhook": null,
|
|
256
266
|
},
|
|
@@ -419,7 +429,7 @@ class ARN {
|
|
|
419
429
|
"ecs": { // Amazon Elastic Container Service
|
|
420
430
|
"cluster": () => `https://${this.region}.${this.console}/ecs/home?region=${this.region}#/clusters/${this.resource}`,
|
|
421
431
|
"container-instance": null,
|
|
422
|
-
"service":
|
|
432
|
+
"service": () => `https://${this.region}.${this.console}/ecs/home?region=${this.region}#/clusters/${this.pathAllButLast}/services/${this.pathLast}/details`,
|
|
423
433
|
"task": () => `https://${this.region}.${this.console}/ecs/home?region=${this.region}#/clusters/${this.pathAllButLast}/tasks/${this.pathLast}`,
|
|
424
434
|
"task-definition": null,
|
|
425
435
|
"task-set": null,
|