aws-mfa
aws-vault
aws-mfa | aws-vault | |
---|---|---|
5 | 49 | |
1,009 | 8,167 | |
- | 1.0% | |
0.0 | 2.5 | |
9 months ago | 7 days ago | |
Python | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
aws-mfa
-
Script or software that automatically populate specific profile in ~/.aws/credentials
I will tell you that some tools like sceptre and terraform barf using a profile with mfa like this and I ended up using aws-mfa: https://github.com/broamski/aws-mfa and run this for example to create a "dynamic" runamok-power profile:
-
Authenticating to AWS provider
I use MFA so store a long term key that is used to generate a temporary key. I use this tool to do the mfa: https://github.com/broamski/aws-mfa
-
Lockdown AWS API calls to list of IPs
I too, struggled with aws-vault and eventually gave up and use https://github.com/broamski/aws-mfa. If you want to take it one step further you can use oathtool and store the totp key in the encrypted vault of your choice. That is still MFA but if you store the factors on the same system you will need to decide about that risk before going the oathtool route.
-
Amazon Web Service account hacked. Email changed and charged over 10k USD. PLEASE HELP
The built in CLI MFA solution sucks if you have a workflow that relies on named profiles. We use them heavily at work and implemented aws-mfa to make it so that all of our stuff could work without adopting ridiculous workflows.
- Can somebody ELI5 how to setup MFA in the CLI?
aws-vault
-
Keep your AWS CLI config fresh with Cog
Undying fondness for aws-vault to securely cache my session credentials.
-
A CLI app that keeps your passwords encrypted and lets you manage them using a single secret
you might want to check https://github.com/99designs/keyring and https://github.com/99designs/aws-vault
-
Cannot use AWS SSO with Terraform
You install aws-vault (https://github.com/99designs/aws-vault), configure it according to the README and make sure you have an SSO entry that is compatible, i.e.:
-
How do you protect your secret keys in your local computer?
I use a aws-vault to switch thought all profiles on all aws account. It support SSO with 2FA.
-
LastPass says DevOps engineer’s hacked computer led to security breach in 2022
Nice! Do I understand this correctly?
You use aws-vault(https://github.com/99designs/aws-vault) and configure it with IAM and MFA with YubiKeys. You configure e.g. the profile jonsmith.
When you run
aws-vault exec jonsmith -- aws s3 ls
it will ask you, e.g. every hour to confirm with YubiKeys and cache the key for one hour. After that the temporary keys expire. Can you also store keys different from AWS?
-
Ask HN: Why most CLIs are not using keyring?
Don't know about kube, but awscli and a few others decouple the idea of getting credentials and doing the actions. You can use the password every time, but a better way is to either use the preconfigured profile or some wrapper which does use the keychain. For example https://github.com/99designs/aws-vault/ supports one-off commands and shell sessions with pre-populated tokens.
-
Recommended script access to AWS
It sounds like you have AWS SSO enabled and need a way to run scripts manually in the terminal. Take a look at the aws-vault project that makes it easy working with multiple AWS accounts.
-
Can I run cdk bootstrap in aws cloudshell?
A tool called aws-vault can fix the "insecure" part.
-
Programatic access with AWS SSO
Take a look at aws-vault, which has support for SSO and running in a docker container.
-
Authenticating to AWS provider
I read the docs on: https://github.com/99designs/aws-vault
What are some alternatives?
pyotp - Python One-Time Password Library
awsume - A utility for easily assuming AWS IAM roles from the command line.
privacyIDEA - :closed_lock_with_key: multi factor authentication system (2FA, MFA, OTP Server)
leapp - Leapp is the DevTool to access your cloud
aws-runas - aws-runas rewritten in Go
powerlevel10k - A Zsh theme
one-time - One Time Password (TOTP and HOTP) library for Clojure. TOTP/HOTP is widely used for Two Factor / Multi Factor Authentication.
azure-aws-creds - This project allows federated Azure Active Directory roles to be easily used with AWS CLI session credentials
ecs-deploy - Powerful CLI tool to simplify Amazon ECS deployments, rollbacks & scaling
aws-cli - Universal Command Line Interface for Amazon Web Services
aws-missing-tools - Random tools I've written to make life easier using AWS, namely aws-choose-profile and aws-mfa-login
ohmyzsh - 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.