0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【AWS】エラー「RDS does not support creating a DB instance with the following combination...」の原因

Posted at

概要

AWS CDK Deployを実施したら以下のエラーに。

Resource handler returned message: "RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.micro, Engine=mysql, EngineVersion=8.0.39, LicenseModel=general-public-license. For supported combinations of instance class and database engine version, see the documentation.

原因と解決方法

上記エラーはMySQL バージョン8.0.39とdb.t2.microインスタンスクラスで互換性がないよ、という内容のエラーです。

このエラーの前にバージョン8.0.23で実施したら「Cannot find version 8.0.23 for mysql」というエラーが出たので、バージョンを最新の8.0.39にして実行してみたら今度は上記の互換性のエラーに。

最新にしたのにおかしいなぁ...と思っていたら、原因はインスタンスクラスの方でした。
そういえばdb.t2.microは2024年末で廃止になったのでした...

もちろん、現時点でAWS管理コンソール画面からもT2系を新規で作成することはできません。

ということで、T3系にしたらエラーが出なくなり、解決しました。

(pythonで書くCDKだと以下)

            instance_type=ec2.InstanceType.of(
                ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MICRO
            ),
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?