Skip to content

davidgfitzgerald/raycast-aws-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raycast AWS Login

Simply login to an AWS service and account (profile) through raycast.

  1. aws.sh uses assume (by granted) to login.
  2. avl.sh uses aws-vault to login.

Requirements

brew install --cask raycast
brew tap common-fate/granted
brew install granted

OR

brew install --cask aws-vault

Installation

  1. Clone this repo to ~/.raycast/
    git clone https://github.com/davidgfitzgerald/raycast-assume ~/.raycast/scripts
  2. Tell raycast to look in ~/.raycast/scripts for scripts
    1. Cmd + Space (to open raycast)
    2. Cmd + , (to configure raycast)
    3. Navigate to Extensions -> Scripts
    4. Click on Script Commands
    5. Click Add Directories and add ~/.raycast/scripts

Dropdown Population

The AWS Profile dropdown in both aws.sh and avl.sh must be populated manually and can be generated from a python script by simply running:

python utils/profile_extractor.py

This will generate profiles.json. The contents of this file must be copied into the data of the Profile argument in aws.sh or avl.sh.

Usage

  1. Cmd + Space (to open raycast)
  2. aws (type aws) OR avl (type avl)
  3. Choose service + account from dropdown
  4. Browser opens AWS to that service + account

Notes

The Service dropdown arguments are populated from here: https://github.com/fwdcloudsec/granted/blob/main/pkg/console/service_map.go

About

Use assume (granted) or aws-vault to login to AWS with raycast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors