Reputation: 815
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.
Upvotes: 3
Views: 4629
Reputation: 12259
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
.
Upvotes: 11