link2aws 1.0.19 → 1.0.20

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,7 +433,7 @@ class ARN {
433
433
  "dhcp-options": null,
434
434
  "elastic-gpu": null,
435
435
  "fpga-image": null,
436
- "image": null,
436
+ "image": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#ImageDetails:imageId=${this.resource}`,
437
437
  "instance": () => `https://${this.region}.${this.console}/ec2/v2/home`,
438
438
  "internet-gateway": null,
439
439
  "key-pair": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "link2aws",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Convert ARN (Amazon Resource Name) to AWS Console link",
5
5
  "main": "link2aws.js",
6
6
  "directories": {