mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(compat): read VPC ID from OpenTofu state (#3831)
This commit is contained in:
1 parent
efd08b3a77
commit
b782530cd2
1 file changed
+2
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user