Skip to content

Commit

Permalink
docs(aws-rds): Specify that grantConnect() does not work (aws#19290)
Browse files Browse the repository at this point in the history
Add notes in the docs that `grantConnect()` does not work currently.

Reference: aws#11851

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
gshpychka authored Mar 8, 2022
1 parent ffa9e0d commit e93e758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@aws-cdk/aws-rds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ You can also authenticate to a database instance using AWS Identity and Access M
See <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html> for more information
and a list of supported versions and limitations.

**Note**: `grantConnect()` does not currently work - see [this GitHub issue](https://github.com/aws/aws-cdk/issues/11851).

The following example shows enabling IAM authentication for a database instance and granting connection access to an IAM role.

```ts
Expand Down
2 changes: 2 additions & 0 deletions packages/@aws-cdk/aws-rds/lib/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export interface IDatabaseInstance extends IResource, ec2.IConnectable, secretsm

/**
* Grant the given identity connection access to the database.
* **Note**: this method does not currently work, see https://github.com/aws/aws-cdk/issues/11851 for details.
* @see https://github.com/aws/aws-cdk/issues/11851
*/
grantConnect(grantee: iam.IGrantable): iam.Grant;

Expand Down

0 comments on commit e93e758

Please sign in to comment.