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 個回答
0
已接受的答案

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
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南