Skip to content

Commit

Permalink
fix issue creating db from snapshot where snapshot uses storage_type io1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Jones committed Sep 6, 2018
1 parent f1be555 commit a815ffa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aws/resource_aws_db_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,8 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}

if attr, ok := d.GetOk("iops"); ok {
opts.Iops = aws.Int64(int64(attr.(int)))
modifyDbInstanceInput.Iops = aws.Int64(int64(attr.(int)))
requiresModifyDbInstance = true
}

if attr, ok := d.GetOk("license_model"); ok {
Expand Down Expand Up @@ -852,7 +853,8 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}

if attr, ok := d.GetOk("storage_type"); ok {
opts.StorageType = aws.String(attr.(string))
modifyDbInstanceInput.StorageType = aws.String(attr.(string))
requiresModifyDbInstance = true
}

if attr, ok := d.GetOk("tde_credential_arn"); ok {
Expand Down

0 comments on commit a815ffa

Please sign in to comment.