Skip to content

A simple Tampermonkey script which will find AWS account ids on the current web page and highlight them with their account name

Notifications You must be signed in to change notification settings

Chemsmith/aws-identify-known-accounts-tm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

AWS Identify Known Accounts

A simple Tampermonkey 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

Installation

  1. Install the Tampermonkey extension in your browser.
  2. Create a new script and copy-paste the contents of 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.

  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

About

A simple Tampermonkey script which will find AWS account ids on the current web page and highlight them with their account name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%