Skip to content

Commit

Permalink
feat(rds-signer): add RDS Signer (aws#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Goeglein authored and AllanZhengYP committed May 9, 2022
1 parent 5f5274c commit 4cb7b44
Show file tree
Hide file tree
Showing 31 changed files with 853 additions and 543 deletions.
6 changes: 0 additions & 6 deletions lib/lib-rds/README.md

This file was deleted.

55 changes: 0 additions & 55 deletions lib/lib-rds/package.json

This file was deleted.

103 changes: 0 additions & 103 deletions lib/lib-rds/src/Signer.spec.ts

This file was deleted.

61 changes: 0 additions & 61 deletions lib/lib-rds/src/Signer.ts

This file was deleted.

7 changes: 0 additions & 7 deletions lib/lib-rds/src/index.spec.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions packages/util-rds/README.md → packages/rds-signer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @aws-sdk/util-rds
# @aws-sdk/rds-signer

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-rds/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-rds)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-rds.svg)](https://www.npmjs.com/package/@aws-sdk/util-rds)
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/rds-signer/latest.svg)](https://www.npmjs.com/package/@aws-sdk/rds-signer)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/rds-signer.svg)](https://www.npmjs.com/package/@aws-sdk/rds-signer)

## Description

Expand All @@ -10,15 +10,15 @@ This package provides utilities for interacting with RDS.
## Installation

```js
npm install @aws-sdk/util-rds
npm install @aws-sdk/rds-signer
```

## Getting Started

### Import

```js
import { Signer } from "@aws-sdk/util-rds";
import { Signer } from "@aws-sdk/rds-signer";
```

### Generate Authentication Token for RDS IAM Authentication
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@aws-sdk/util-rds",
"name": "@aws-sdk/rds-signer",
"version": "3.43.0",
"description": "RDS utility for generating a password that can be used for IAM authentication to an RDS DB.",
"main": "./dist-cjs/index.js",
Expand All @@ -22,10 +22,9 @@
},
"license": "Apache-2.0",
"dependencies": {
"@aws-crypto/sha256-browser": "^2.0.0",
"@aws-crypto/sha256-js": "^2.0.0",
"@aws-sdk/credential-provider-node": "3.40.0",
"@aws-sdk/hash-node": "^3.40.0",
"@aws-crypto/sha256-browser": "2.0.0",
"@aws-crypto/sha256-js": "2.0.0",
"@aws-sdk/hash-node": "3.40.0",
"@aws-sdk/protocol-http": "3.40.0",
"@aws-sdk/signature-v4": "3.40.0",
"@aws-sdk/util-format-url": "3.40.0",
Expand Down Expand Up @@ -57,10 +56,10 @@
"react-native": {
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
},
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-rds",
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/rds-signer",
"repository": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-js-v3.git",
"directory": "packages/util-rds"
"directory": "packages/rds-signer"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { formatUrl } from "@aws-sdk/util-format-url";

import { Signer, SignerConfig } from "./Signer";

describe("util-rds Signer", () => {
describe("rds-signer", () => {
const minimalParams: SignerConfig = {
region: "us-foo-1",
username: "testuser",
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions packages/rds-signer/src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as rdsSigner from "./index";

describe("rds-signer", () => {
it("has Signer", () => {
expect(rdsSigner.Signer).toBeDefined();
});
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions packages/util-rds/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/util-rds/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 4cb7b44

Please sign in to comment.