{"id":19151421,"url":"https://github.com/sc5/serverless-sts-caller-id","last_synced_at":"2025-08-07T16:19:37.742Z","repository":{"id":57148246,"uuid":"126995789","full_name":"SC5/serverless-sts-caller-id","owner":"SC5","description":"Serverless plugin to get the user ID belonging to the current AWS credentials using STS (Security Token Service)","archived":false,"fork":false,"pushed_at":"2018-03-29T07:59:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-03T22:39:13.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SC5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-27T14:04:43.000Z","updated_at":"2018-03-29T07:59:50.000Z","dependencies_parsed_at":"2022-09-05T16:51:12.407Z","dependency_job_id":null,"html_url":"https://github.com/SC5/serverless-sts-caller-id","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fserverless-sts-caller-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fserverless-sts-caller-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fserverless-sts-caller-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fserverless-sts-caller-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SC5","download_url":"https://codeload.github.com/SC5/serverless-sts-caller-id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236233,"owners_count":19769573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T08:14:40.357Z","updated_at":"2025-02-22T20:48:18.872Z","avatar_url":"https://github.com/SC5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless STS Caller ID\n\nA Serverless Plugin for the [Serverless Framework](http://www.serverless.com) which\nhelps allows to retrieve the user ID belonging to the AWS credentials currently being used with the help of STS (Security Token Service).\n\n## Introduction\n\nThis plugins does the following:\n\n* It provides a variable (`stsCallerId`) that contains the user ID of the AWS credentials being used\n\n## Installation and configuration\n\nIn your service root, run:\n\n```bash\nnpm install --save-dev serverless-sts-caller-id\n```\n\nAdd the plugin to `serverless.yml`:\n\n```yml\nplugins:\n  - serverless-sts-caller-id\n```\n\n## Usage\n\nYou can use the custom variable `stsCallerId` in `serverless.yml`. For example:\n\n```yml\nprovider:\n  stage: ${stsCallerId}\n```\n\nIf you want to get a SHA1 hashed version of the ID, you can use `stsCallerId:hashed`:\n\n```yml\nprovider:\n  stage: ${stsCallerId:hashed}\n```\n\nYou can also truncate the hash to a specific length:\n\n```yml\nprovider:\n  stage: ${stsCallerId:hashed:8}\n```\n\n## TODO\n\n* Add tests\n\n## Release History\n\n* 2018/03/27 - v1.0.0 - Initial version\n\n\n## License\n\nCopyright (c) 2018 [Nordcloud](https://nordcloud.com/), licensed for users and contributors under MIT license.\nhttps://github.com/SC5/serverless-sts-caller-id/blob/master/LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fserverless-sts-caller-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc5%2Fserverless-sts-caller-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fserverless-sts-caller-id/lists"}