Skip to content

Commit

Permalink
Merge pull request #5800 from dannosaur/master
Browse files Browse the repository at this point in the history
Fix error creating aws_db_instance from snapshot where snapshot uses storage_type io1
  • Loading branch information
bflad committed Feb 22, 2019
2 parents 25cb5fe + a815ffa commit 02995bc
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 @@ -818,7 +818,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 @@ -878,7 +879,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 02995bc

Please sign in to comment.