From ac2f69b81f9a229f0c33107764085f62b77d7c4d Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Fri, 27 Oct 2023 08:31:35 -0400 Subject: [PATCH 1/3] d/aws_lambda_function: Add 'vpc_config.ipv6_allowed_for_dual_stack' attribute. --- internal/service/lambda/function_data_source.go | 4 ++++ internal/service/lambda/function_data_source_test.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/internal/service/lambda/function_data_source.go b/internal/service/lambda/function_data_source.go index d4c8b2e1ca3..bd7e1377e1c 100644 --- a/internal/service/lambda/function_data_source.go +++ b/internal/service/lambda/function_data_source.go @@ -194,6 +194,10 @@ func DataSourceFunction() *schema.Resource { Computed: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "ipv6_allowed_for_dual_stack": { + Type: schema.TypeBool, + Computed: true, + }, "security_group_ids": { Type: schema.TypeSet, Computed: true, diff --git a/internal/service/lambda/function_data_source_test.go b/internal/service/lambda/function_data_source_test.go index 849aa6dce96..8ca95dfc1f3 100644 --- a/internal/service/lambda/function_data_source_test.go +++ b/internal/service/lambda/function_data_source_test.go @@ -202,8 +202,10 @@ func TestAccLambdaFunctionDataSource_vpc(t *testing.T) { Check: resource.ComposeAggregateTestCheckFunc( resource.TestCheckResourceAttrPair(dataSourceName, "arn", resourceName, "arn"), resource.TestCheckResourceAttrPair(dataSourceName, "vpc_config.#", resourceName, "vpc_config.#"), + resource.TestCheckResourceAttrPair(dataSourceName, "vpc_config.0.ipv6_allowed_for_dual_stack", resourceName, "vpc_config.0.ipv6_allowed_for_dual_stack"), resource.TestCheckResourceAttrPair(dataSourceName, "vpc_config.0.security_group_ids.#", resourceName, "vpc_config.0.security_group_ids.#"), resource.TestCheckResourceAttrPair(dataSourceName, "vpc_config.0.subnet_ids.#", resourceName, "vpc_config.0.subnet_ids.#"), + resource.TestCheckResourceAttrPair(dataSourceName, "vpc_config.0.vpc_id", resourceName, "vpc_config.0.vpc_id"), ), }, }, From 6452b8fcb6cda9948b44ad1403fceae1168f4437 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Fri, 27 Oct 2023 08:33:04 -0400 Subject: [PATCH 2/3] Add CHANGELOG entry. --- .changelog/#####.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/#####.txt diff --git a/.changelog/#####.txt b/.changelog/#####.txt new file mode 100644 index 00000000000..805d6b092af --- /dev/null +++ b/.changelog/#####.txt @@ -0,0 +1,3 @@ +```release-note:bug +data-source/aws_lambda_function: Add `vpc_config.ipv6_allowed_for_dual_stack` attribute, fixing `Invalid address to set: []string{"vpc_config", "0", "ipv6_allowed_for_dual_stack"}` errors +``` \ No newline at end of file From ea2e59f499eb2879a5fbd346dbd701aa8b086044 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Fri, 27 Oct 2023 08:36:17 -0400 Subject: [PATCH 3/3] Correct CHANGELOG entry file name. --- .changelog/{#####.txt => 34134.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .changelog/{#####.txt => 34134.txt} (100%) diff --git a/.changelog/#####.txt b/.changelog/34134.txt similarity index 100% rename from .changelog/#####.txt rename to .changelog/34134.txt