link2aws / link2aws.github.io

Get AWS console link from ARN
https://link2aws.github.io/
36 stars 20 forks source link

New resource type: codeconnections, codestar-connections #63

Closed dleavitt closed 3 months ago

dleavitt commented 3 months ago

Info:

There's also a sort of equivalent resource (old version of the same thing, I think) that lives under the codestar-connections resource type. The ARN/URL formula is the same as the above, with codeconnections replaced with codestar-connections:

Notes:

Cloudformation Entities:

Some code:

const [prefix, id] = arn.split("/");
const [, , ns, region, account] = prefix.split(":");
const url = `https://${region}.console.aws.amazon.com/codesuite/settings/${account}/${region}/${ns}/connections/${id}`;
fxkr commented 3 months ago

Thanks! That would be a great contribution. Feel free to open a PR, if you like! It looks like it should be a fairly straightforward change (1 line per resource type, + tests), as it seems all the necessary variables are already available.

Otherwise I can do the code change as well, but then it may take me a days to find time.

dleavitt commented 3 months ago

Will do