Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-sts-caller-id

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-sts-caller-id

Serverless plugin to get the user ID belonging to the current AWS credentials using STS (Security Token Service)

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Serverless STS Caller ID

A Serverless Plugin for the Serverless Framework which helps allows to retrieve the user ID belonging to the AWS credentials currently being used with the help of STS (Security Token Service).

Introduction

This plugins does the following:

  • It provides a variable (stsCallerId) that contains the user ID of the AWS credentials being used

Installation and configuration

In your service root, run:

npm install --save-dev serverless-sts-caller-id

Add the plugin to serverless.yml:

plugins:
  - serverless-sts-caller-id

Usage

You can use the custom variable stsCallerId in serverless.yml. For example:

provider:
  stage: ${stsCallerId}

If you want to get a SHA1 hashed version of the ID, you can use stsCallerId:hashed:

provider:
  stage: ${stsCallerId:hashed}

You can also truncate the hash to a specific length:

provider:
  stage: ${stsCallerId:hashed:8}

TODO

  • Add tests

Release History

  • 2018/03/27 - v1.0.0 - Initial version

License

Copyright (c) 2018 Nordcloud, licensed for users and contributors under MIT license. https://github.com/SC5/serverless-sts-caller-id/blob/master/LICENSE

Keywords

FAQs

Package last updated on 29 Mar 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc