From d236a305ea4cd9ae9def32450019f32f78a025a9 Mon Sep 17 00:00:00 2001 From: stack72 Date: Fri, 2 Sep 2016 17:21:02 +0300 Subject: [PATCH] provider/aws: Making `aws_alb_listener` ssl_policy to be Computed Fixes #8612 The SSL Policy is optional - if you don't add it and create a HTTPS Alb Listener, AWS will add the policy for you. Without being computed, we would get a diff ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSALBListener_' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2016/09/02 17:16:33 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSALBListener_ -timeout 120m === RUN TestAccAWSALBListener_basic --- PASS: TestAccAWSALBListener_basic (70.45s) === RUN TestAccAWSALBListener_https --- PASS: TestAccAWSALBListener_https (63.20s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 133.667s ``` --- builtin/providers/aws/resource_aws_alb_listener.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_alb_listener.go b/builtin/providers/aws/resource_aws_alb_listener.go index 5d5baac0d..04ff648cb 100644 --- a/builtin/providers/aws/resource_aws_alb_listener.go +++ b/builtin/providers/aws/resource_aws_alb_listener.go @@ -54,6 +54,7 @@ func resourceAwsAlbListener() *schema.Resource { "ssl_policy": { Type: schema.TypeString, Optional: true, + Computed: true, }, "certificate_arn": {