|
|
|
|
|
by jffry
1446 days ago
|
|
For my dev machine's interactions with AWS, I use https://github.com/99designs/aws-vault You add the long lived IAM user API key/secret to it and it stores it in a password protected storage (MacOS keychain or similar). Then you invoke aws-vault with an IAM role and command, and it will handle obtaining short-lived credentials scoped to that role (including TOTP 2-factor code auth), and then run the command with those temporary credentials as env vars. With the right AWS permissions on your user, it can also automatically rotate the IAM user API keys for you. |
|