Skip to content

Commit

Permalink
handle http_protocol_ipv6 metadata in data_source_launch_template
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Discardi committed Sep 23, 2021
1 parent b74be69 commit 1ee0bc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/data_source_aws_launch_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions aws/data_source_aws_launch_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
Expand Down

0 comments on commit 1ee0bc3

Please sign in to comment.