# link2aws

> Convert ARN (Amazon Resource Name) to AWS Console link

Latest version **1.0.26** (published 2026-06-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install link2aws
pnpm add link2aws
yarn add link2aws
bun add link2aws
```

Provides the command `link2aws`.

## Health

**Score 53/100 (C)** — status: active.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.26 |
| Published | 2026-06-07 |
| First published | 2020-07-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/link2aws) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 50.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 44 |
| Author | Felix Kaiser |
| Maintainers | fxkr |

## Links

- npm: https://www.npmjs.com/package/link2aws
- Repository: https://github.com/link2aws/link2aws
- Homepage: https://github.com/link2aws/link2aws#readme
- Issues: https://github.com/link2aws/link2aws/issues
- npm.io page: https://npm.io/package/link2aws

## Recent versions

- 1.0.26 (latest) — 2026-06-07
- 1.0.25 — 2026-03-01
- 1.0.24 — 2025-04-07
- 1.0.23 — 2024-08-29
- 1.0.22 — 2024-07-31
- 1.0.21 — 2024-05-16
- 1.0.20 — 2024-04-09
- 1.0.19 — 2024-04-09
- 1.0.18 — 2024-02-05
- 1.0.17 — 2024-01-05
- 1.0.16 — 2023-10-14
- 1.0.15 — 2023-09-09
- 1.0.14 — 2023-05-28
- 1.0.13 — 2023-04-15
- 1.0.12 — 2023-02-15
- … 10 more at https://npm.io/package/link2aws/versions

## README

# link2aws

Copy/paste ARN, get direct link to AWS console

<a href="https://link2aws.github.io">
<img src="screenshot.png" alt="Screenshot of link2aws.github.io" />
</a>

Copyright (c) 2020-2026, Felix Kaiser. License: [ISC](https://spdx.org/licenses/ISC.html)

![Node.js CI](https://github.com/link2aws/link2aws.github.io/workflows/Node.js%20CI/badge.svg)

## How to...

### Use as website

Go to [link2aws.github.io](https://link2aws.github.io) (privacy notice: it runs in the browser and does *not* send your input anywhere)

Or run directly from source:

```sh
# git clone https://github.com/link2aws/link2aws.github.io
# firefox link2aws.github.io/index.html
```

You can make links that auto-redirect to the AWS console by appending `#arn...` like this:

https://link2aws.github.io/#arn:aws:ec2:us-west-1:136693071363:image/ami-0851c4af3ebd71c35


### Use as command line tool

Via NPM:

```sh
# npm install -g link2aws
# link2aws arn:aws:s3:::abcdefgh1234
https://s3.console.aws.amazon.com/s3/buckets/abcdefgh1234
```

Or clone the repo and run the file (no setup required):

```sh
# git clone https://github.com/link2aws/link2aws.github.io
# node link2aws.github.io/link2aws.js arn:aws:s3:::abcdefgh1234
https://s3.console.aws.amazon.com/s3/buckets/abcdefgh1234
```

### Use as JavaScript library

```js
var link2aws = require('link2aws');
new link2aws.ARN('arn:aws:s3:::abcdefgh1234').consoleLink
// https://s3.console.aws.amazon.com/s3/buckets/abcdefgh1234
```

Or:

```js
import { ARN } from 'link2aws';
new ARN('arn:aws:s3:::abcdefgh1234').consoleLink;
// https://s3.console.aws.amazon.com/s3/buckets/abcdefgh1234
```

If the ARN is invalid, or valid but we have no link for it, an exception is thrown.

### Add support for resource types

It's super easy - see [this example](https://github.com/link2aws/link2aws.github.io/commit/0432ecbbe522dbbd7e746caeeb4a7d1a6be5f057).

Pull requests welcome!

#### Add code

* Support for new resource types: see large dict at the end of `link2aws.js`
* Testcases...
    * ...where we should take a valid ARN and return a URL: `testcases/aws.json`
    * ...where we should take a string (e.g. bad or unsupported ARN) and throw an exception: `testcases/aws-negative.json`
    * ...for corner cases not specific to AWS, such as whitespace handling: `testcases/string.json`

#### Run tests and check test coverage

```
npm install
node_modules/nyc/bin/nyc.js --reporter=text node_modules/mocha/bin/mocha test/test.js
```

## Other languages

Also see our [Rust library](https://crates.io/crates/link2aws).

---
_Source: https://npm.io/package/link2aws · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
