AWS role switch

AWS role switch

Browser plugin to quickly switch between roles on the AWS console

Additional files are visible only to premium users

manifest.json


{
  "version": "0.10.0",
  "name": "AWS role switch",
  "description": "Quickly switch between roles on the AWS console",
  "homepage_url": "https://github.com/janstuemmel/aws-role-switch",
  "options_ui": {
    "page": "options/options.html",
    "browser_style": false,
    "open_in_tab": true
  },
  "content_scripts": [
    {
      "matches": [
        "https://*.console.aws.amazon.com/*",
        "https://*.console.amazonaws-us-gov.com/*",
        "https://*.console.amazonaws.cn/*",
        "https://lightsail.aws.amazon.com/*",
        "https://health.aws.amazon.com/*",
        "https://phd.amazonaws-us-gov.com/*",
        "https://phd.amazonaws.cn/*"
      ],
      "js": [
        "content/aws-console.js"
      ],
      "run_at": "document_idle"
    },
    {
      "matches": [
        "https://signin.aws.amazon.com/*"
      ],
      "js": [
        "content/aws-signin.js"
      ],
      "run_at": "document_idle"
    }
  ],
  "manifest_version": 2,
  "browser_action": {
    "default_title": "AWS role switch",
    "default_popup": "popup/popup.html",
    "browser_style": true,
    "default_icon": {
      "128": "assets/icon128.png"
    }
  },
  "permissions": [
    "storage",
    "cookies",
    "https://*.console.aws.amazon.com/*",
    "https://*.console.amazonaws-us-gov.com/*",
    "https://*.console.amazonaws.cn/*",
    "https://lightsail.aws.amazon.com/*",
    "https://health.aws.amazon.com/*",
    "https://phd.amazonaws-us-gov.com/*",
    "https://phd.amazonaws.cn/*"
  ],
  "commands": {
    "_execute_browser_action": {
      "description": "Open the popup window",
      "suggested_key": {
        "default": "Ctrl+Shift+L"
      }
    }
  },
  "background": {
    "scripts": [
      "background/background.js"
    ]
  },
  "browser_specific_settings": {
    "gecko": {
      "id": "{31f7b254-7ac9-4f3a-ae3c-ef67ea153e4a}",
      "strict_min_version": "57.0"
    }
  }
}