title: Terraform AWS Aurora Serverless MySQL - Error: Invalid DB Engine
body: <p>I'm trying to use the aws terraform rds module to spin up an aurora serverless mysql 5.7 version but get the below Error while creating the DB Instance, pointing to an incorrect DBEngine.</p>
  <p><em><strong>Error creating DB Instance: InvalidParameterValue: Invalid DB engine</strong></em></p>
  <pre><code>resource &quot;aws_rds_cluster&quot; &quot;test&quot; {
    cluster_identifier                  = &quot;test-cluster&quot;
    engine                              = &quot;aurora-mysql&quot;
    engine_version                      = &quot;5.7.12&quot;
    engine_mode                         = &quot;serverless&quot;
    database_name                       = &quot;rdstest&quot;
    master_username                     = &quot;xxxxx&quot;
    master_password                     = &quot;xxxxxxx&quot;
    kms_key_id                          = &quot;arn:aws:kms:eu-west-1:792xxxxxx:key/09f01648-daf7-xxxxxxxx&quot;
    backup_retention_period             =  7
    port                                = 3306
    db_cluster_parameter_group_name     = aws_rds_cluster_parameter_group.aurora_cluster_mysql_parameter_group.name
    vpc_security_group_ids              = [&quot;${aws_security_group.cachet_rds.id}&quot;]
    availability_zones                  = [&quot;eu-west-1a&quot;]
    db_subnet_group_name                = aws_db_subnet_group.cachet.id
    skip_final_snapshot                 = true
  }
  
  resource &quot;aws_db_instance&quot; &quot;test&quot; {
    identifier              = &quot;test&quot;
    allocated_storage       =  20
    storage_type            = &quot;gp2&quot;
    engine                  = &quot;aurora-mysql&quot;
    engine_version          = &quot;5.7.12&quot;
    instance_class          = &quot;t3a.small&quot;
    db_subnet_group_name    = aws_db_subnet_group.cachet.id
    vpc_security_group_ids  = [&quot;${aws_security_group.cachet_rds.id}&quot;]
    username                = &quot;xxxxx&quot;
    password                = &quot;xxxxx&quot;
    parameter_group_name    = aws_rds_cluster_parameter_group.aurora_cluster_mysql_parameter_group.name
    skip_final_snapshot     = true
    backup_retention_period = 5
    storage_encrypted       = true
    kms_key_id              = &quot;arn:aws:kms:eu-west-1:79xxxxx:key/09f01648-daf7-47e7-af2f-xxxxxx&quot;
  }
  
  resource &quot;aws_db_parameter_group&quot; &quot;aurora_db_mysql_parameter_group&quot; {
    name        = &quot;test-aurora-parameter-group&quot;
    family      = &quot;aurora-mysql5.7&quot;
  }
  
  resource &quot;aws_rds_cluster_parameter_group&quot; &quot;aurora_cluster_mysql_parameter_group&quot; {
    name        = &quot;test-aurora-cluster-parameter-group&quot;
    family      = &quot;aurora-mysql5.7&quot;
  }
  </code></pre>
  <p>According to AWS Docs, the allowed family group is &quot;aurora-mysql5.7&quot; and engine_version is &quot;5.7.12&quot; .https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.serverless_2_07_01.html</p>
  <p>Tried with  EngineVersion: &quot;5.7.mysql_aurora.2.08.2&quot;, and EngineVersion 5.7.12 both.</p>