/* output sg-id-name { value = [ for id, name in zipmap( sort(aws_security_group.sg.*.id), sort(aws_security_group.sg.*.name)) : tomap(id, name) ] } */ output sg-ids { value = aws_security_group.sg.*.id }