From a1006d0d67b06fe3b065c85c043b5c2ad0e845fe Mon Sep 17 00:00:00 2001 From: "xiaowei.wang" Date: Wed, 28 Feb 2018 20:37:59 +0100 Subject: [PATCH 1/2] docs/r/api_gateway_vpc_link: argument change from target_arn to target_arns --- website/docs/r/api_gateway_vpc_link.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/r/api_gateway_vpc_link.html.markdown b/website/docs/r/api_gateway_vpc_link.html.markdown index 2463aadbdd7..deb53f107d8 100644 --- a/website/docs/r/api_gateway_vpc_link.html.markdown +++ b/website/docs/r/api_gateway_vpc_link.html.markdown @@ -26,7 +26,7 @@ resource "aws_lb" "example" { resource "aws_api_gateway_vpc_link" "example" { name = "example" description = "example description" - target_arn = "${aws_lb.example.arn}" + target_arns = ["${aws_lb.example.arn}"] } ``` @@ -36,7 +36,7 @@ The following arguments are supported: * `name` - (Required) The name used to label and identify the VPC link. * `description` - (Optional) The description of the VPC link. -* `target_arn` - (Required, ForceNew) The ARN of a network load balancer in the VPC targeted by the VPC link. +* `target_arns` - (Required, ForceNew) The list of network load balancer arns in the VPC targeted by the VPC link. Currently AWS only supports 1 target. ## Attributes Reference From 3f28f4fef43643225cb4c9c11f78d08c5bcb44e3 Mon Sep 17 00:00:00 2001 From: "xiaowei.wang" Date: Wed, 28 Feb 2018 22:43:00 +0100 Subject: [PATCH 2/2] resource/api_gateway_vpc_link: fix 'target_arns' in read function --- aws/resource_aws_api_gateway_vpc_link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_api_gateway_vpc_link.go b/aws/resource_aws_api_gateway_vpc_link.go index 8911e5dcbba..62f10d8a502 100644 --- a/aws/resource_aws_api_gateway_vpc_link.go +++ b/aws/resource_aws_api_gateway_vpc_link.go @@ -92,7 +92,7 @@ func resourceAwsApiGatewayVpcLinkRead(d *schema.ResourceData, meta interface{}) d.Set("name", resp.Name) d.Set("description", resp.Description) - d.Set("target_arn", flattenStringList(resp.TargetArns)) + d.Set("target_arns", flattenStringList(resp.TargetArns)) return nil }