Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
serverless-offline-assume-role
Advanced tools
Assume different IAM roles when running serverless-offline
This Serverless plugin allows you to develop offline by specifying which role from ~/.aws/config
that you would like to run under when your organization uses AWS Multiple Account Billing Strategy. This plugin is made to work with the serverless-offline plugin.
This plugin is not to be confused with setting the AWS_PROFILE
environment variable. That environment variable reads from ~/.aws/credentials
and is used when you have multiple access and secret access keys for multiple accounts.
First install the plugins.
npm install serverless-offline serverless-offline-assume-role --save-dev
Then inside of your project's serverless.yml
file add the following to the plugins section. Note it is important that serverless-offline-ssm
is loaded before serverless-offline
. This is important to ensure that we are setting the variables properly for serverless-offline
before it needs them.
plugins:
- serverless-offline-assume-role
- serverless-offline
Then, given an ~/.aws/config
file that looks similar to the following:
[default]
region=us-west-2
output=json
[profile dev]
role_arn = arn:aws:iam::123456789012:role/dev
source_profile = default
[profile qa]
role_arn = arn:aws:iam::123456789012:role/qa
source_profile = default
[profile prod]
role_arn = arn:aws:iam::123456789012:role/prod
source_profile = default
Lastly, add your preferred under the serverless-offline
object under custom
in serverless.yml
custom:
serverless-offline:
role: "dev"
Pull requests are always welcome. Please see the contributing guidelines.
FAQs
Assume different IAM roles when running serverless-offline
We found that serverless-offline-assume-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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.