Skip to content

Commit

Permalink
fix: add aws_vpc to iac test fixture
Browse files Browse the repository at this point in the history
We made some improvements to the HCL parser in snyk-iac-test v0.40.0, which
will cause it reject some invalid HCL code that it used to ignore. This
fixture contained an unresolved reference, so I've just added the
referenced resource.

[CLOUD-1176]
  • Loading branch information
jason-snyk committed Feb 28, 2023
1 parent 213f609 commit a5ae9e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fixtures/iac/depth_detection/one/one.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
}

resource "aws_subnet" "private2" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.4.0/24"
Expand Down

0 comments on commit a5ae9e2

Please sign in to comment.