
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
assume-aws-role
Advanced tools
Work with multiple AWS accounts more easily.
If you currently manage multiple AWS accounts and use role switching to do work in them, this is the tool for you!
First, you need to install the tool from NPM:
npm install -g assume-aws-role
Next, you need to add a role that you'd like to assume. As an example, lets say I wanted to add the Administrator role for my sandbox account with MFA required:
assume-aws-role add sandbox \
"arn:aws:iam::123456789012:role/Administrator" \
"arn:aws:iam::109876543210:mfa/jbuck"
Now you can assume that role we just added:
assume-aws-role sandbox 123456
Now you've got a shell with your temporary security credentials in the environment:
(assume-aws-role sandbox)$
Any roles you add are stored in ~/.assume-aws-role/config
. It's optional but highly recommended that you use a MFA device.
assume-aws-role
uses the STS:AssumeRole API to assume the role you specified.
After receiving valid credentials assume-aws-role
will spawn the shell specified in $SHELL
with the environment modified to include AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, and AWS_SESSION_TOKEN
.
FAQs
Work with multiple AWS accounts more easily
The npm package assume-aws-role receives a total of 10 weekly downloads. As such, assume-aws-role popularity was classified as not popular.
We found that assume-aws-role demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.