Skip to content

Commit

Permalink
Aurora serverless v2 support (gravitational#13154)
Browse files Browse the repository at this point in the history
  • Loading branch information
greedy52 authored Jun 6, 2022
1 parent 627e105 commit e6ad580
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/pages/database-access/guides/rds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ This guide will help you to:

<Admonition type="note" title="Supported versions">
The following products are not compatible with Database Access as they don't support IAM authentication:
- Aurora Serverless.
- Aurora Serverless v1.
- RDS MariaDB versions lower than 10.6.

It is recommended to upgrade Aurora Serverless v1 to
[Aurora Serverless v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html)
which does support IAM authentication.
</Admonition>

## Prerequisites
Expand Down
8 changes: 6 additions & 2 deletions lib/services/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,13 @@ func IsRDSInstanceSupported(instance *rds.DBInstance) bool {
// IsRDSClusterSupported checks whether the Aurora cluster is supported.
func IsRDSClusterSupported(cluster *rds.DBCluster) bool {
switch aws.StringValue(cluster.EngineMode) {
// Aurora Serverless (v1 and v2) does not support IAM authentication
// Aurora Serverless v1 does NOT support IAM authentication.
// https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations
// https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-2.limitations.html
//
// Note that Aurora Serverless v2 does support IAM authentication.
// https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html
// However, v2's engine mode is "provisioned" instead of "serverless" so it
// goes to the default case (true).
case RDSEngineModeServerless:
return false

Expand Down

0 comments on commit e6ad580

Please sign in to comment.