Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willdady/aws-identify-known-accounts-tm
A simple Tampermonkey script which will find AWS account ids on the current web page and highlight them with their account name
https://github.com/willdady/aws-identify-known-accounts-tm
aws browser-extension tampermonkey tampermonkey-script tampermonkey-userscript userscript
Last synced: 24 days ago
JSON representation
A simple Tampermonkey script which will find AWS account ids on the current web page and highlight them with their account name
- Host: GitHub
- URL: https://github.com/willdady/aws-identify-known-accounts-tm
- Owner: willdady
- Created: 2023-12-17T01:40:08.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-17T06:54:05.000Z (11 months ago)
- Last Synced: 2024-04-14T06:10:09.977Z (7 months ago)
- Topics: aws, browser-extension, tampermonkey, tampermonkey-script, tampermonkey-userscript, userscript
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Identify Known Accounts
A simple [Tampermonkey][tm] script which will find AWS account ids on the current web page and highlights them with their account name.
I was motivated to create this script as it's often difficult identifying accounts by their account id alone, especially when reading pull-requests etc.
![Example](images/example.png)
## Installation
1. Install the [Tampermonkey][tm] extension in your browser.
2. Create a new script and copy-paste the contents of [identify-known-aws-accounts.user.js](./identify-known-aws-accounts.user.js) into it.
3. Edit the script with your AWS accounts (see below).
4. Save the script.### Configuration
You must edit the `ACCOUNTS` constant to contain a list of your AWS accounts.
Each object MUST contain `accountId` and `accountName`. Note, `accountId` is a regular expression *not* a string.
It's also possible to override `DEFAULT_BACKGROUND_COLOR` and `DEFAULT_TEXT_COLOR` of individual accounts by setting `backgroundColor` and `textColor` respectively.
For example, you may wish to style production accounts differently than non-production accounts etc.```javascript
const ACCOUNTS = [
{
accountId: /999999999991/,
accountName: "Acme Inc - Development",
},
{
accountId: /999999999992/,
accountName: "Acme Inc - Staging",
},
{
accountId: /999999999993/,
accountName: "Acme Inc - Production",
backgroundColor: 'pink', // Optional
textColor: 'black', // Optional
},
];
```## Usage
Simply right-click on any web-page, select **Tampermonkey** then click **Identify known AWS accounts**.
![Browser context menu](images/context-menu.png)
[tm]: https://www.tampermonkey.net/