link2aws 1.0.19 → 1.0.21

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/README.md CHANGED
@@ -23,6 +23,11 @@ Or run directly from source:
23
23
  # firefox link2aws.github.io/index.html
24
24
  ```
25
25
 
26
+ You can make links that auto-redirect to the AWS console by appending `#arn...` like this:
27
+
28
+ https://link2aws.github.io/#arn:aws:ec2:us-west-1:136693071363:image/ami-0851c4af3ebd71c35
29
+
30
+
26
31
  ### Use as command line tool
27
32
 
28
33
  Via NPM:
package/link2aws.js CHANGED
@@ -433,11 +433,12 @@ class ARN {
433
433
  "dhcp-options": null,
434
434
  "elastic-gpu": null,
435
435
  "fpga-image": null,
436
- "image": null,
437
- "instance": () => `https://${this.region}.${this.console}/ec2/v2/home`,
436
+ "image": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#ImageDetails:imageId=${this.resource}`,
437
+ "instance": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#InstanceDetails:instanceId=${this.resource}`,
438
438
  "internet-gateway": null,
439
+ "natgateway": () => `https://${this.region}.${this.console}/vpcconsole/home?region=${this.region}#NatGatewayDetails:natGatewayId=${this.resource}`,
439
440
  "key-pair": null,
440
- "launch-template": null,
441
+ "launch-template": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#LaunchTemplateDetails:launchTemplateId=${this.resource}`,
441
442
  "local-gateway": null,
442
443
  "local-gateway-route-table": null,
443
444
  "local-gateway-route-table-virtual-interface-group-association": null,
@@ -450,7 +451,7 @@ class ARN {
450
451
  "reserved-instances": null,
451
452
  "route-table": null,
452
453
  "security-group": () => `https://${this.region}.${this.console}/vpc/home?region=${this.region}#SecurityGroup:groupId=${this.resource}`,
453
- "snapshot": null,
454
+ "snapshot": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#SnapshotDetails:snapshotId=${this.resource}`,
454
455
  "spot-instances-request": null,
455
456
  "subnet": () => `https://${this.region}.${this.console}/vpc/home?region=${this.region}#SubnetDetails:subnetId=${this.resource}`,
456
457
  "traffic-mirror-filter": null,
@@ -461,9 +462,9 @@ class ARN {
461
462
  "transit-gateway-attachment": null,
462
463
  "transit-gateway-multicast-domain": null,
463
464
  "transit-gateway-route-table": null,
464
- "volume": null,
465
+ "volume": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#VolumeDetails:volumeId=${this.resource}`,
465
466
  "vpc": () => `https://${this.region}.${this.console}/vpc/home?region=${this.region}#VpcDetails:VpcId=${this.resource}`,
466
- "vpc-endpoint": null,
467
+ "vpc-endpoint": () => `https://${this.region}.${this.console}/vpcconsole/home?region=${this.region}#EndpointDetails:vpcEndpointId=${this.resource}`,
467
468
  "vpc-endpoint-service": null,
468
469
  "vpc-flow-log": null,
469
470
  "vpc-peering-connection": null,
@@ -509,7 +510,7 @@ class ARN {
509
510
  "elasticloadbalancing": { // AWS WAF V2
510
511
  "listener": null,
511
512
  "listener-rule": null,
512
- "loadbalancer": null,
513
+ "loadbalancer": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#LoadBalancer:loadBalancerArn=${this.arn}`,
513
514
  "targetgroup": null,
514
515
  },
515
516
  "elasticmapreduce": { // Amazon Elastic MapReduce
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "link2aws",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Convert ARN (Amazon Resource Name) to AWS Console link",
5
5
  "main": "link2aws.js",
6
6
  "directories": {