link2aws / link2aws.github.io

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

Add secretsmanager #66

Closed dleavitt closed 2 months ago

dleavitt commented 2 months ago

The resource segment of the ARN has an extra trailing "-abc123" piece that isn't part of the secret name and can't be included in the console URL. It always appears to be a - followed by six alphanumeric chars.

Example: Secret ARN: arn:<stuff...>:MySecret9A3F29-vdHtS43BP1i1-knwb3S Secret Name: MySecret9A3F29-vdHtS43BP1i1

Looks like this is specifically documented, so throwing an error if the suffix is missing.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secret.html#cfn-secretsmanager-secret-name

fxkr commented 2 months ago

Thank you very much, especially for the great explanation of what's going on!

Released as version 1.0.23.