Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
rename to serverless-offline-sts
Browse files Browse the repository at this point in the history
 🐿 v2.11.0
  • Loading branch information
wheresrhys committed Dec 6, 2018
1 parent 475f2d1 commit 31b9618
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# serverless-offline-assume-role
# serverless-offline-sts

Use AWS STS to assume a role when using serverless-offline

## Usage

Add `serverless-offline-assume-role` to your plugins list in `serverless.yaml` (after `serverless-offline`)
Add `serverless-offline-sts` to your plugins list in `serverless.yaml` (after `serverless-offline`)

It requires that your `serverless.yaml`'s `provider` section contains a `region` and a `role`, and that you have ([via a method of your choice](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html)) AWS credentials that allow assuming that role.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class OfflineAssumeRole {
class OfflineSTS {
constructor(serverless) {
this.commands = {
OfflineAssumeRole: {
OfflineSTS: {
lifecycleEvents: [],
},
};
Expand Down Expand Up @@ -41,4 +41,4 @@ class OfflineAssumeRole {
}
}

module.exports = OfflineAssumeRole;
module.exports = OfflineSTS;
14 changes: 6 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "serverless-offline-assume-role",
"name": "serverless-offline-sts",
"version": "1.0.0",
"description": "Use AWS STS to assume a role when using serverless-offline",
"main": "offline-assume-role.js",
"main": "index.js",
"scripts": {
"precommit": "secret-squirrel",
"commitmsg": "secret-squirrel-commitmsg"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Financial-Times/serverless-offline-assume-role.git"
"url": "git+https://github.com/Financial-Times/serverless-offline-sts.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Financial-Times/serverless-offline-assume-role/issues"
"url": "https://github.com/Financial-Times/serverless-offline-sts/issues"
},
"homepage": "https://github.com/Financial-Times/serverless-offline-assume-role#readme",
"homepage": "https://github.com/Financial-Times/serverless-offline-sts#readme",
"devDependencies": {
"@financial-times/secret-squirrel": "^2.11.0",
"eslint": "^5.9.0",
Expand Down

0 comments on commit 31b9618

Please sign in to comment.