Skip to content

jeffmur/insomnia-plugin-aws-iam-v4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insomnia AWS IAM Plugin

An Insomnia plugin to retrieve aws credentials for use with IAM authentication.

Extends previous implementation: https://github.com/dankelleher/insomnia-plugin-aws-iam To allow for profiles and read credentials from file, opposed to copy and pasting from ~/.aws/credentials

Now supports role_arn, thank you @SushilShrestha, with example config:

$ cat ~/.aws/config

[profile auth]
region = us-west-2
...

[profile foobar]
role_arn = arn:aws:iam:123456:role/foo-bar
source_profile = auth

Authenticate with AWS_PROFILE=auth, and assume role within this plugin 🎉

Usage guide

  1. Locate the Insomnia plugins directory (on MacOS)
cd ~/Library/Application Support/Insomnia/plugins
  1. Download and Install the plugin in previous step's directory
git clone https://github.com/jeffmur/insomnia-plugin-aws-iam-v4.git
cd insomnia-plugin-aws-iam-v4
npm install
  1. In Insomnia toggle Reload Plugins via Tools -> Reload Plugins
  2. For an API call, choose Authentication -> AWS
  3. In the Access Key ID, Secret Access Key, Session Token fields, start typing awsiam, wait for autocomplete, and choose the appropriate value for each field.

About

Allows credentials to be read from file via Insomnia plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published