Skip to content

Commit

Permalink
Merge pull request #4215 from steveh/aurora-migrate-engine-version
Browse files Browse the repository at this point in the history
Set engine version when calling RestoreDBClusterFromSnapshot
  • Loading branch information
bflad committed Apr 17, 2018
2 parents 29a75f2 + 8ee8a72 commit 5676fd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/resource_aws_rds_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ func resourceAwsRDSClusterCreate(d *schema.ResourceData, meta interface{}) error
Tags: tags,
}

if attr, ok := d.GetOk("engine_version"); ok {
opts.EngineVersion = aws.String(attr.(string))
}

if attr := d.Get("availability_zones").(*schema.Set); attr.Len() > 0 {
opts.AvailabilityZones = expandStringList(attr.List())
}
Expand Down

0 comments on commit 5676fd7

Please sign in to comment.