You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defining instance_type=ec2.InstanceType("db.t4g.micro"), for a aws_rds.DatabaseInstance synths to "DBInstanceClass": "db.db.t4g.micro", causing the following error when deploying: Resource handler returned message: "Invalid DB Instance class: db.db.t4g.micro (Service: Rds, Status Code: 400, Request ID: xxx)" (RequestToken: xxx HandlerErrorCode: InvalidRequest)
Expected Behavior
For the synth to be "DBInstanceClass": "db.t4g.micro", and the database to be created correctly
Current Behavior
Synth was "DBInstanceClass": "db.db.t4g.micro",
Reproduction Steps
Init an cdk app
Put the following into app.py:
`
from aws_cdk import (
aws_rds as rds,
aws_ec2 as ec2,
)
import aws_cdk as cdk
from constructs import Construct
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Defining
instance_type=ec2.InstanceType("db.t4g.micro"),
for a aws_rds.DatabaseInstance synths to"DBInstanceClass": "db.db.t4g.micro",
causing the following error when deploying:Resource handler returned message: "Invalid DB Instance class: db.db.t4g.micro (Service: Rds, Status Code: 400, Request ID: xxx)" (RequestToken: xxx HandlerErrorCode: InvalidRequest)
Expected Behavior
For the synth to be
"DBInstanceClass": "db.t4g.micro",
and the database to be created correctlyCurrent Behavior
Synth was
"DBInstanceClass": "db.db.t4g.micro",
Reproduction Steps
`
from aws_cdk import (
aws_rds as rds,
aws_ec2 as ec2,
)
import aws_cdk as cdk
from constructs import Construct
class StatefulStack(cdk.Stack):
def init(self, scope: Construct, id: str, **kwargs) -> None:
super().init(scope, id, **kwargs)
app = cdk.App()
StatefulStack(app, "StatefulStack")
app.synth()
3. Run
cdk synth4. Check the synthesised cloudformation and notice
DBInstanceClass: db.db.t4g.micro`Possible Solution
Unfortunately do not have enough experience with CDK / CFN to suggest a solution.
Additional Information/Context
No response
CDK CLI Version
2.114.1 (build 02bbb1d)
Framework Version
No response
Node.js Version
Node.js v20.5.1
OS
macOS Ventura 13.0
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: