From 2ee81843e20f08ee9e183c99e54337e3aaa004f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Bragan=C3=A7a?= <495495+thefringeninja@users.noreply.github.com> Date: Fri, 20 Dec 2019 20:35:04 +0000 Subject: [PATCH] resource/aws_db_instance: Remove indentifier_prefix truncation for sqlserver engine (#9040) The original limitation is no longer present. Verified SQL Server provisioning with lengthy `identifier_prefix` specified and this code change. --- aws/resource_aws_db_instance.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/aws/resource_aws_db_instance.go b/aws/resource_aws_db_instance.go index 221f8f86356..73e2d4315f6 100644 --- a/aws/resource_aws_db_instance.go +++ b/aws/resource_aws_db_instance.go @@ -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) }