Unavailable Serverless Db Engine Mode Error

0

I'm facing following issue when creating Serverless Aurora Postgres 14.5 Cluster using AWS CDK. I've also tested out different versions such as 15.2, 14.6, 14.7. Error: "The engine mode serverless you requested is currently unavailable. "

self.aurora_serverless_db = rds.ServerlessCluster(
            self,
            "AuroraServerlessCluster",
            engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_14_5),
            vpc=self.vpc,
            vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_ISOLATED),
            default_database_name="serverless_db",
            backup_retention=Duration.days(1), 
            deletion_protection=True,
            enable_data_api=True, 
            parameter_group=rds.ParameterGroup.from_parameter_group_name( 
                self,
                "AuroraDBParameterGroup",
                "default.aurora-postgresql14"  
            ),
            scaling=rds.ServerlessScalingOptions(
                auto_pause=Duration.minutes(30),
                # Shutdown after minutes of inactivity to save costs
                min_capacity=rds.AuroraCapacityUnit.ACU_2,
                max_capacity=rds.AuroraCapacityUnit.ACU_4
            ),
        )

All is working well with engine = rds.DatabaseClusterEngine.AURORA_POSTGRES and parameter_group ="default.aurora-postgresql10"

1 Answer
0
Accepted Answer

ServerlessCluster(), I think Aurora Serverless V1 is running.
With Aurora Serverless V1, only Aurora PostgreSQL 10 and 11 compatible versions can be configured.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.relnotes.html

To use Aurora Postgres 14.5 compatible version, you must use Aurora Serverless V2.
I think you have to force it to Aurora Serverless V2 with rds.DatabaseCluster() as described in the Issues here.
https://github.com/aws/aws-cdk/issues/20197

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions