Skip to content

Commit 9edfa5a

Browse files
committed
fix: Ensure a list of attributes can be used on ec2_configuration
1 parent 7219c15 commit 9edfa5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "aws_batch_compute_environment" "this" {
2828
desired_vcpus = contains(["FARGATE", "FARGATE_SPOT"], compute_resources.value.type) ? null : compute_resources.value.desired_vcpus
2929

3030
dynamic "ec2_configuration" {
31-
for_each = !contains(["FARGATE", "FARGATE_SPOT"], compute_resources.value.type) && compute_resources.value.ec2_configuration != null ? [compute_resources.value.ec2_configuration] : []
31+
for_each = !contains(["FARGATE", "FARGATE_SPOT"], compute_resources.value.type) && compute_resources.value.ec2_configuration != null ? compute_resources.value.ec2_configuration : []
3232

3333
content {
3434
image_id_override = ec2_configuration.value.image_id_override

0 commit comments

Comments
 (0)