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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인