Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 30031d3

Browse files
committed
Remove lookup syntax without default
1 parent 8c9412a commit 30031d3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/couchbase-cluster/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ resource "aws_autoscaling_group" "autoscaling_group" {
3535
for_each = var.tags
3636

3737
content {
38-
key = lookup(tag.value, "key")
39-
value = lookup(tag.value, "value")
40-
propagate_at_launch = lookup(tag.value, "propagate_at_launch")
38+
key = tag.value["key"]
39+
value = tag.value["value"]
40+
propagate_at_launch = tag.value["propagate_at_launch"]
4141
}
4242
}
4343
}
@@ -71,9 +71,9 @@ resource "aws_launch_configuration" "launch_configuration" {
7171
dynamic "ebs_block_device" {
7272
for_each = var.ebs_block_devices
7373
content {
74-
device_name = lookup(ebs_block_device.value, "device_name")
75-
volume_type = lookup(ebs_block_device.value, "volume_type")
76-
volume_size = lookup(ebs_block_device.value, "volume_size")
74+
device_name = ebs_block_device.value["device_name"]
75+
volume_type = ebs_block_device.value["volume_type"]
76+
volume_size = ebs_block_device.value["volume_size"]
7777
iops = lookup(ebs_block_device.value, "iops", null)
7878
encrypted = lookup(ebs_block_device.value, "encrypted", null)
7979
delete_on_termination = lookup(ebs_block_device.value, "delete_on_termination", null)

modules/load-balancer-target-group/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ resource "aws_alb_listener_rule" "http_path" {
5656
dynamic "condition" {
5757
for_each = var.routing_condition
5858
content {
59-
field = lookup(condition.value, "field")
60-
values = lookup(condition.value, "values")
59+
field = condition.value["field"]
60+
values = condition.value["values"]
6161
}
6262
}
6363
}

0 commit comments

Comments
 (0)