Add AutoMinorVersionUpgrade to RDS.
This commit is contained in:
parent
9426f6ff6c
commit
7dd6b779ca
|
@ -387,17 +387,17 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
opts := rds.CreateDBInstanceInput{
|
opts := rds.CreateDBInstanceInput{
|
||||||
AllocatedStorage: aws.Int64(int64(d.Get("allocated_storage").(int))),
|
AllocatedStorage: aws.Int64(int64(d.Get("allocated_storage").(int))),
|
||||||
CopyTagsToSnapshot: aws.Bool(d.Get("copy_tags_to_snapshot").(bool)),
|
DBName: aws.String(d.Get("name").(string)),
|
||||||
DBName: aws.String(d.Get("name").(string)),
|
DBInstanceClass: aws.String(d.Get("instance_class").(string)),
|
||||||
DBInstanceClass: aws.String(d.Get("instance_class").(string)),
|
DBInstanceIdentifier: aws.String(d.Get("identifier").(string)),
|
||||||
DBInstanceIdentifier: aws.String(d.Get("identifier").(string)),
|
MasterUsername: aws.String(d.Get("username").(string)),
|
||||||
MasterUsername: aws.String(d.Get("username").(string)),
|
MasterUserPassword: aws.String(d.Get("password").(string)),
|
||||||
MasterUserPassword: aws.String(d.Get("password").(string)),
|
Engine: aws.String(d.Get("engine").(string)),
|
||||||
Engine: aws.String(d.Get("engine").(string)),
|
EngineVersion: aws.String(d.Get("engine_version").(string)),
|
||||||
EngineVersion: aws.String(d.Get("engine_version").(string)),
|
StorageEncrypted: aws.Bool(d.Get("storage_encrypted").(bool)),
|
||||||
StorageEncrypted: aws.Bool(d.Get("storage_encrypted").(bool)),
|
AutoMinorVersionUpgrade: aws.Bool(d.Get("auto_minor_version_upgrade").(bool)),
|
||||||
Tags: tags,
|
Tags: tags,
|
||||||
}
|
}
|
||||||
|
|
||||||
attr := d.Get("backup_retention_period")
|
attr := d.Get("backup_retention_period")
|
||||||
|
@ -712,6 +712,11 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
|
||||||
req.StorageType = aws.String(d.Get("storage_type").(string))
|
req.StorageType = aws.String(d.Get("storage_type").(string))
|
||||||
requestUpdate = true
|
requestUpdate = true
|
||||||
}
|
}
|
||||||
|
if d.HasChange("auto_minor_version_upgrade") {
|
||||||
|
d.SetPartial("auto_minor_version_upgrade")
|
||||||
|
req.AutoMinorVersionUpgrade = aws.Bool(d.Get("auto_minor_version_upgrade").(bool))
|
||||||
|
requestUpdate = true
|
||||||
|
}
|
||||||
|
|
||||||
if d.HasChange("vpc_security_group_ids") {
|
if d.HasChange("vpc_security_group_ids") {
|
||||||
if attr := d.Get("vpc_security_group_ids").(*schema.Set); attr.Len() > 0 {
|
if attr := d.Get("vpc_security_group_ids").(*schema.Set); attr.Len() > 0 {
|
||||||
|
|
Loading…
Reference in New Issue