From 1ee0bc30044af4e3fd68498c10a8004b140207f5 Mon Sep 17 00:00:00 2001 From: Nicola Discardi Date: Thu, 23 Sep 2021 12:11:29 +0200 Subject: [PATCH] handle http_protocol_ipv6 metadata in data_source_launch_template --- aws/data_source_aws_launch_template.go | 4 ++++ aws/data_source_aws_launch_template_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/aws/data_source_aws_launch_template.go b/aws/data_source_aws_launch_template.go index a4251784ce4..83d3f91efbb 100644 --- a/aws/data_source_aws_launch_template.go +++ b/aws/data_source_aws_launch_template.go @@ -220,6 +220,10 @@ func dataSourceAwsLaunchTemplate() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "http_protocol_ipv6": { + Type: schema.TypeString, + Computed: true, + }, "http_tokens": { Type: schema.TypeString, Computed: true, diff --git a/aws/data_source_aws_launch_template_test.go b/aws/data_source_aws_launch_template_test.go index b98277cdfd8..5cdb8479cff 100644 --- a/aws/data_source_aws_launch_template_test.go +++ b/aws/data_source_aws_launch_template_test.go @@ -147,6 +147,7 @@ func TestAccAWSLaunchTemplateDataSource_metadataOptions(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrPair(dataSourceName, "metadata_options.#", resourceName, "metadata_options.#"), resource.TestCheckResourceAttrPair(dataSourceName, "metadata_options.0.http_endpoint", resourceName, "metadata_options.0.http_endpoint"), + resource.TestCheckResourceAttrPair(dataSourceName, "metadata_options.0.http_protocol_ipv6", resourceName, "metadata_options.0.http_protocol_ipv6"), resource.TestCheckResourceAttrPair(dataSourceName, "metadata_options.0.http_tokens", resourceName, "metadata_options.0.http_tokens"), resource.TestCheckResourceAttrPair(dataSourceName, "metadata_options.0.http_put_response_hop_limit", resourceName, "metadata_options.0.http_put_response_hop_limit"), ),