Skip to content

Commit

Permalink
Add support for DynamoDB tables and SQS queues
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcaballero committed Apr 4, 2022
1 parent c751d82 commit b4add3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion link2aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class ARN {
},
"dynamodb": { // Amazon DynamoDB
"global-table": null,
"table": null,
"table": () => `https://${this.region}.${this.console}/dynamodbv2/home?region=${this.region}#table?name=${this.resource}`,
},
"ec2": { // AWS Systems Manager
"capacity-reservation": null,
Expand Down Expand Up @@ -942,6 +942,7 @@ class ARN {
"sns": { // Amazon SNS
},
"sqs": { // Amazon SQS
"": () => `https://${this.region}.${this.console}/sqs/v2/home?region=${this.region}#/queues/https%3A%2F%2Fsqs.${this.region}.amazonaws.com%2F${this.account}%2F${this.resource}`
},
"ssm": { // AWS Systems Manager
"association": null,
Expand Down
4 changes: 4 additions & 0 deletions testcases/aws.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"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:dynamodb:us-east-1:123456789012:table/test": "https://us-east-1.console.aws.amazon.com/dynamodbv2/home?region=us-east-1#table?name=test",

"arn:aws:iam::123456789012:oidc-provider/samples.auth0.com/authorize": "https://console.aws.amazon.com/iam/home?#/providers/arn:aws:iam::123456789012:oidc-provider/samples.auth0.com/authorize",
"arn:aws:iam::aws:policy/AdministratorAccess": "https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/AdministratorAccess",
"arn:aws:iam::123456789012:role/aws-service-role/support.amazonaws.com/AWSServiceRoleForSupport": "https://console.aws.amazon.com/iam/home?#/roles/AWSServiceRoleForSupport",
Expand All @@ -27,6 +29,8 @@

"arn:aws:s3:::abcdefgh1234": "https://s3.console.aws.amazon.com/s3/buckets/abcdefgh1234",

"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"

}

0 comments on commit b4add3f

Please sign in to comment.