Skip to content

Commit 67d405f

Browse files
authored
fix: Ensure a list of attributes can be used on ec2_configuration (#47)
1 parent a20b255 commit 67d405f

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)