-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(terraform): render list entries via modules correctly (#3781)
* render list entries via modules correctly * extract the update list logic to only override for TF * ensure type of key_parts
- Loading branch information
Showing
5 changed files
with
109 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/terraform/graph/variable_rendering/test_resources/list_entry_module_var/module/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
variable "vpc_id" { | ||
type = string | ||
} | ||
|
||
variable "cidr_sg" { | ||
type = string | ||
default = "0.0.0.0/0" | ||
} | ||
|
||
resource "aws_security_group" "sg" { | ||
name = "example" | ||
vpc_id = var.vpc_id | ||
|
||
ingress { | ||
from_port = 22 | ||
to_port = 22 | ||
protocol = "TCP" | ||
cidr_blocks = [var.cidr_sg] | ||
} | ||
egress { | ||
from_port = 22 | ||
to_port = 22 | ||
protocol = "TCP" | ||
cidr_blocks = ["10.0.0.0/16", var.cidr_sg] | ||
} | ||
} |