diff --git a/link2aws.js b/link2aws.js index f46560a..6e81bbc 100644 --- a/link2aws.js +++ b/link2aws.js @@ -992,7 +992,7 @@ class ARN { }, "states": { // AWS Step Functions "activity": null, - "execution": null, + "execution": () => `https://${this.region}.${this.console}/states/home?region=${this.region}#/v2/executions/details/${this.string}`, "stateMachine": () => `https://${this.region}.${this.console}/states/home?region=${this.region}#/statemachines/view/${this.string}`, }, "storagegateway": { // Amazon Storage Gateway diff --git a/package-lock.json b/package-lock.json index 429f583..ad92e87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "link2aws", - "version": "1.0.16", + "version": "1.0.17", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "link2aws", - "version": "1.0.16", + "version": "1.0.17", "license": "ISC", "bin": { "link2aws": "link2aws" diff --git a/package.json b/package.json index 413a063..f12028a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "link2aws", - "version": "1.0.16", + "version": "1.0.17", "description": "Convert ARN (Amazon Resource Name) to AWS Console link", "main": "link2aws.js", "directories": { diff --git a/testcases/aws.json b/testcases/aws.json index 30218bc..a92d630 100644 --- a/testcases/aws.json +++ b/testcases/aws.json @@ -45,6 +45,7 @@ "arn:aws:sqs:us-east-1:123456789012:b6a826b4-b44b-11ec-8d84-acde48001122": "https://us-east-1.console.aws.amazon.com/sqs/v2/home?region=us-east-1#/queues/https%3A%2F%2Fsqs.us-east-1.amazonaws.com%2F123456789012%2Fb6a826b4-b44b-11ec-8d84-acde48001122", "arn:aws:states:us-east-1:123456789012:stateMachine:StateMachineName": "https://us-east-1.console.aws.amazon.com/states/home?region=us-east-1#/statemachines/view/arn:aws:states:us-east-1:123456789012:stateMachine:StateMachineName", + "arn:aws:states:us-east-1:123456789012:execution:StateMachineName:ExecutionId": "https://us-east-1.console.aws.amazon.com/states/home?region=us-east-1#/v2/executions/details/arn:aws:states:us-east-1:123456789012:execution:StateMachineName:ExecutionId", "arn:aws:amplify:sa-east-1:384862141196:apps/aaaaaaaaa/branches/master/jobs/0000000181": "https://sa-east-1.console.aws.amazon.com/amplify/home?region=sa-east-1#/aaaaaaaaa/master/181", "arn:aws:amplify:sa-east-1:384862141196:apps/aaaaaaaaa/branches/master/jobs/00000001810": "https://sa-east-1.console.aws.amazon.com/amplify/home?region=sa-east-1#/aaaaaaaaa/master/1810",