From 583c0a54c43ee29d7489786b71aadf88bab2a9e9 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Tue, 22 Dec 2015 21:10:23 +0100 Subject: [PATCH] aws: Fix bug w/ changing ECS service LB association - fixes #3444 - fixes #4227 --- builtin/providers/aws/resource_aws_ecs_service.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtin/providers/aws/resource_aws_ecs_service.go b/builtin/providers/aws/resource_aws_ecs_service.go index 805d96840..3af04dbda 100644 --- a/builtin/providers/aws/resource_aws_ecs_service.go +++ b/builtin/providers/aws/resource_aws_ecs_service.go @@ -51,27 +51,32 @@ func resourceAwsEcsService() *schema.Resource { "iam_role": &schema.Schema{ Type: schema.TypeString, + ForceNew: true, Optional: true, }, "load_balancer": &schema.Schema{ Type: schema.TypeSet, Optional: true, + ForceNew: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "elb_name": &schema.Schema{ Type: schema.TypeString, Required: true, + ForceNew: true, }, "container_name": &schema.Schema{ Type: schema.TypeString, Required: true, + ForceNew: true, }, "container_port": &schema.Schema{ Type: schema.TypeInt, Required: true, + ForceNew: true, }, }, },