Ao tentar pegar os ip's das primeiras instâncias, criadas com o count, o terraform retorna erro:
Error: Reference to undeclared resource
│
│ on 6-outputs.tf line 3, in output "ip_dev-1":
│ 3: value = "${aws_instance.dev-1.public_ip}"
│
│ A managed resource "aws_instance" "dev-1" has not been declared in the root module.
╵
╷
│ Error: Reference to undeclared resource
│
│ on 6-outputs.tf line 6, in output "ip_dev-2":
│ 6: value = "${aws_instance.dev-2.public_ip}"
│
│ A managed resource "aws_instance" "dev-2" has not been declared in the root module.
╵
╷
│ Error: Reference to undeclared resource
│
│ on 6-outputs.tf line 9, in output "ip_dev-3":
│ 9: value = "${aws_instance.dev-3.public_ip}"
│
│ A managed resource "aws_instance" "dev-3" has not been declared in the root module.
Para as demais instâncias, ele retorna normal.