Skip to content

Commit

Permalink
Merge pull request #57 from link2aws/dev/ec2-image
Browse files Browse the repository at this point in the history
Add support for EC2 images
  • Loading branch information
fxkr authored Apr 9, 2024
2 parents c14dbda + 550a882 commit a140b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion link2aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class ARN {
"dhcp-options": null,
"elastic-gpu": null,
"fpga-image": null,
"image": null,
"image": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#ImageDetails:imageId=${this.resource}`,
"instance": () => `https://${this.region}.${this.console}/ec2/v2/home`,
"internet-gateway": null,
"key-pair": null,
Expand Down
1 change: 1 addition & 0 deletions testcases/aws.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

"arn:aws:acm:us-east-1:123456789012:certificate/1f6ee793-4064-4a10-9567-f03875640b35": "https://console.aws.amazon.com/acm/home?region=us-east-1#/?id=1f6ee793-4064-4a10-9567-f03875640b35",

"arn:aws:ec2:us-west-1:136693071363:image/ami-0851c4af3ebd71c35": "https://us-west-1.console.aws.amazon.com/ec2/home?region=us-west-1#ImageDetails:imageId=ami-0851c4af3ebd71c35",
"arn:aws:ec2:us-east-1:123456789012:instance/1234": "https://us-east-1.console.aws.amazon.com/ec2/v2/home",
"arn:aws:ec2:us-east-1:123456789012:subnet/subnet-12345612312312312" : "https://us-east-1.console.aws.amazon.com/vpc/home?region=us-east-1#SubnetDetails:subnetId=subnet-12345612312312312",
"arn:aws:ec2:us-east-1:123456789012:security-group/sg-12345123123123123": "https://us-east-1.console.aws.amazon.com/vpc/home?region=us-east-1#SecurityGroup:groupId=sg-12345123123123123",
Expand Down

0 comments on commit a140b8a

Please sign in to comment.