Merge pull request #2745 from ctiwald/ct/lowercase-engine

aws_db_instance: Downcase "engine" for RDS
This commit is contained in:
Clint 2015-07-27 14:27:32 -05:00
commit 8a4fbbf64c
2 changed files with 5 additions and 1 deletions

View File

@ -46,6 +46,10 @@ func resourceAwsDbInstance() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true, ForceNew: true,
StateFunc: func(v interface{}) string {
value := v.(string)
return strings.ToLower(value)
},
}, },
"engine_version": &schema.Schema{ "engine_version": &schema.Schema{

View File

@ -176,7 +176,7 @@ resource "aws_db_instance" "bar" {
identifier = "foobarbaz-test-terraform-%d" identifier = "foobarbaz-test-terraform-%d"
allocated_storage = 10 allocated_storage = 10
engine = "mysql" engine = "MySQL"
engine_version = "5.6.21" engine_version = "5.6.21"
instance_class = "db.t1.micro" instance_class = "db.t1.micro"
name = "baz" name = "baz"