Why can I not create a database of size db.t2.micro in CloudFormation?
Here is my template:
Resources:
Database:
Type: AWS::RDS::DBInstance
Properties:
AllocatedStorage: 20
AllowMajorVersionUpgrade: No
BackupRetentionPeriod: 7
DBInstanceClass: db.t2.micro
DBName: myDB
DeletionProtection: no
Engine: mysql
MasterUsername: admin
MasterUserPassword: superSecret
MultiAZ: no
PubliclyAccessible: yes
VPCSecurityGroups:
- !Ref SG
And the error that I am getting is:
Invalid DB Instance class: db.t2.micro (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterValue; Request ID: ????; Proxy: null)
Any suggestions are appreciated.
You can use the following AWS CLI command to check whether a DB instance class is orderable in a particular AWS region:
aws rds describe-orderable-db-instance-options --engine mysql --db-instance-class db.t2.micro --region eu-north-1
In this case, it returns
{
"OrderableDBInstanceOptions": []
}
This means that the db.t2.micro is not orderable in eu-north-1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With