From cfafa3f5743a8eeba6222dcce705bb14eb760b3d Mon Sep 17 00:00:00 2001 From: Diego Rodriguez Date: Wed, 3 Feb 2016 00:33:42 -0800 Subject: [PATCH] fix ec2 classic security group changing --- builtin/providers/aws/resource_aws_db_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_db_instance.go b/builtin/providers/aws/resource_aws_db_instance.go index 523c89c25..e0cb1776a 100644 --- a/builtin/providers/aws/resource_aws_db_instance.go +++ b/builtin/providers/aws/resource_aws_db_instance.go @@ -775,7 +775,7 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error requestUpdate = true } - if d.HasChange("vpc_security_group_ids") { + if d.HasChange("security_group_names") { if attr := d.Get("security_group_names").(*schema.Set); attr.Len() > 0 { var s []*string for _, v := range attr.List() {