Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating DB Instance: InvalidParameterCombination: RDS does not support creating a DB instance "MySQL" #17013

Closed
phelun opened this issue Dec 30, 2017 · 3 comments

Comments

@phelun
Copy link

phelun commented Dec 30, 2017

Having issue with creating a DB instance. I have looked through related issues, made respective changes still no luck .

My configuration as below

Terraform Version

Terraform v0.10.7

Terraform Configuration block

resource "aws_security_group" "RDS" {
  name = "sg_rds"
  description = "Use by/for DB instances"
  vpc_id = "${aws_vpc.vpcld_01.id}"

  ingress {
    from_port       = 3306
    to_port         = 3306
    protocol        = "tcp"
    security_groups = ["${aws_security_group.public.id}", "${aws_security_group.private.id}"]
  }
}

resource "aws_db_instance" "db" {
   allocated_storage»= 10
   engine» » = "mysql"
   engine_version» = "5.6.27"
   instance_class» = "db.t1.micro" 
   storage_type = "gp2"
   name» » » = "dbname"
   username» » = "dbuser"
   password» » = "dbpassword"
   db_subnet_group_name  = "${aws_db_subnet_group.rds_subnetgroup.name}"
   vpc_security_group_ids = ["${aws_security_group.RDS.id}"]
 }

Crash Output

1 error(s) occurred:

  • aws_db_instance.db: 1 error(s) occurred:

  • aws_db_instance.db: Error creating DB Instance: InvalidParameterCombination: RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t1.micro, Engine=mysql, EngineVersion=5.6.27, LicenseModel=general-public-license. For supported combinations of instance class and database engine version, see the documentation.
    status code: 400, request id: 9760ca49-17e0-45be-9664-d5d1feba1176

@arnoldokoth
Copy link

@phelun Well, going through the docs, I couldn't find db.t1.micro listed under MySQL RDS. Either it is not supported while using MySQL or it was discontinued. Could you try using a db.t2.micro that is the current generation? Reference here >> https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html

@phelun
Copy link
Author

phelun commented Dec 30, 2017

@arnoldokoth thanks, that fixed it.

@phelun phelun closed this as completed Dec 30, 2017
@ghost
Copy link

ghost commented Apr 5, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants