From 61088f5a02bea3c8bfeb3365c00f56b47fd650ef Mon Sep 17 00:00:00 2001 From: Ayelet Cohen-Vardi Date: Wed, 15 May 2024 17:20:47 +0300 Subject: [PATCH] EC2: launch-template implementation --- link2aws.js | 2 +- testcases/aws.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/link2aws.js b/link2aws.js index 4f3165d..6832253 100644 --- a/link2aws.js +++ b/link2aws.js @@ -438,7 +438,7 @@ class ARN { "internet-gateway": null, "natgateway": () => `https://${this.region}.${this.console}/vpcconsole/home?region=${this.region}#NatGatewayDetails:natGatewayId=${this.resource}`, "key-pair": null, - "launch-template": null, + "launch-template": () => `https://${this.region}.${this.console}/ec2/home?region=${this.region}#LaunchTemplateDetails:launchTemplateId=${this.resource}`, "local-gateway": null, "local-gateway-route-table": null, "local-gateway-route-table-virtual-interface-group-association": null, diff --git a/testcases/aws.json b/testcases/aws.json index 252996f..247ffda 100644 --- a/testcases/aws.json +++ b/testcases/aws.json @@ -9,6 +9,7 @@ "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/home?region=us-east-1#InstanceDetails:instanceId=1234", "arn:aws:ec2:us-east-1:123456789012:natgateway/nat-123456": "https://us-east-1.console.aws.amazon.com/vpcconsole/home?region=us-east-1#NatGatewayDetails:natGatewayId=nat-123456", + "arn:aws:ec2:us-east-1:123456789012:launch-template/lt-123456": "https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#LaunchTemplateDetails:launchTemplateId=lt-123456", "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", "arn:aws:ec2:us-east-1:123456789012:snapshot/snap-123456": "https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#SnapshotDetails:snapshotId=snap-123456",