From b782530cd26df30fad9cae685cf41d0da712d78e Mon Sep 17 00:00:00 2001 From: Niels Kootstra <545768+nkootstra@users.noreply.github.com> Date: Sat, 19 Sep 2026 15:22:51 +0200 Subject: [PATCH] fix(compat): read VPC ID from OpenTofu state (#3831) --- compatibility-tests/compat-opentofu/test/opentofu.bats | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/compatibility-tests/compat-opentofu/test/opentofu.bats b/compatibility-tests/compat-opentofu/test/opentofu.bats index 1d31e2090d..292fe4c1f8 100644 --- a/compatibility-tests/compat-opentofu/test/opentofu.bats +++ b/compatibility-tests/compat-opentofu/test/opentofu.bats @@ -342,9 +342,7 @@ sha256_composite_by_sizes() { } @test "OpenTofu: VPC enableDnsSupport persisted as false" { - VPC_ID=$(aws_cmd ec2 describe-vpcs \ - --filters "Name=tag:Name,Values=floci-compat-vpc" \ - --query 'Vpcs[0].VpcId' --output text) + VPC_ID=$(tofu output -raw vpc_id) run aws_cmd ec2 describe-vpc-attribute \ --vpc-id "$VPC_ID" --attribute enableDnsSupport assert_success @@ -352,9 +350,7 @@ sha256_composite_by_sizes() { } @test "OpenTofu: VPC enableDnsHostnames persisted as false" { - VPC_ID=$(aws_cmd ec2 describe-vpcs \ - --filters "Name=tag:Name,Values=floci-compat-vpc" \ - --query 'Vpcs[0].VpcId' --output text) + VPC_ID=$(tofu output -raw vpc_id) run aws_cmd ec2 describe-vpc-attribute \ --vpc-id "$VPC_ID" --attribute enableDnsHostnames assert_success