Skip to content

Commit

Permalink
resource/aws_db_instance: Remove indentifier_prefix truncation for sq…
Browse files Browse the repository at this point in the history
…lserver engine (#9040)

The original limitation is no longer present. Verified SQL Server provisioning with lengthy `identifier_prefix` specified and this code change.
  • Loading branch information
thefringeninja authored and bflad committed Dec 20, 2019
1 parent 02d31ee commit 2ee8184
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions aws/resource_aws_db_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,6 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
identifier = resource.UniqueId()
}

// SQL Server identifier size is max 15 chars, so truncate
if engine := d.Get("engine").(string); engine != "" {
if strings.Contains(strings.ToLower(engine), "sqlserver") {
identifier = identifier[:15]
}
}
d.Set("identifier", identifier)
}

Expand Down

0 comments on commit 2ee8184

Please sign in to comment.