Skip to content

Instantly share code, notes, and snippets.

View klejejs's full-sized avatar
🏠
Working ON home 😉

Krisjanis Lejejs klejejs

🏠
Working ON home 😉
View GitHub Profile
@klejejs
klejejs / README.md
Last active August 18, 2023 08:20
Generate AWS MFA credentials using OTP code stored in 1Password

Generate AWS MFA credentials using OTP code stored in 1Password

This script helps generate AWS MFA credentials using OTP code stored in 1Password. It can be used in setups where you have a single AWS main account with multiple roles for other accounts and you want to use one MFA for all of them.

Requirements

  1. 1Password CLI with op command installed and configured; AWS MFA secret stored in 1Password
  2. AWS CLI installed and configured

Usage