AWS SSO Insomnia Plugin
A small plugin to retrieve AWS SSO credentials for signing IAMv4 authenticated requests.
- AWS CLI V2
- An AWS account with SSO sign-on enabled
- An SSO named profile configured using the AWS CLI
If the prerequisites have been satisfied you should be able to perform an SSO login using:
aws sso login --profile <YOUR PROFILE>
To use the plugin within Insomnia, select the
AWS authentication type for your request.
The plugin is to be used from within the
ACCESS KEY ID,
SECRET ACCESS KEY, and
SESSION TOKEN fields:
Within a selected field, type
aws and wait for autocomplete to provide variable suggestions. You should be able to select
AWS SSO to fill in the field.
Once you have populated a field, you can edit it by clicking on it. You need to select both a profile and an item for each tag.
Make sure you select the item that corresponds to the field you are editing (e.g. if you are editing the
ACCESS KEY ID field, make sure to select
Access Key Id as the item.)
You can hardcode the profile per field if you wish, but it is much more ergonomic to use an Insomnia environment variable. You can select an environment variable by clicking the gear icon next to the
Once configured you shouldn't need to adjust your individual fields. If you have used an environment variable for the profile, changing it will propagate through all of your requests configured to use this plugin.