diff --git a/builtin/providers/aws/resource_aws_db_instance.go b/builtin/providers/aws/resource_aws_db_instance.go index b2d37664ac..bfae70f8b7 100644 --- a/builtin/providers/aws/resource_aws_db_instance.go +++ b/builtin/providers/aws/resource_aws_db_instance.go @@ -140,8 +140,11 @@ func resourceAwsDbInstance() *schema.Resource { Optional: true, Computed: true, StateFunc: func(v interface{}) string { - value := v.(string) - return strings.ToLower(value) + if v != nil { + value := v.(string) + return strings.ToLower(value) + } + return "" }, },