Output Order in specific order

Hi Team,

I have terraform config file (version 0.12.20)which creates ec2 instance. In the last I am displaying its IP’s. I want to display order in a certain order.

For example

Outputs:

Bart_SERVER_IP = “172.22.16.219”

Master-IP = “172.22.16.218”

PEM-IP = “172.22.16.222”

SSH-USER = “demo”

Slave1-IP = “172.22.14.189”

Slave2-IP = “172.22.16.217”

To

Outputs:

Bart_SERVER_IP = “172.22.16.219”

Master-IP = “172.22.16.218”

Slave1-IP = “172.22.14.189”

Slave2-IP = “172.22.16.217”

PEM-IP = “172.22.16.222”

SSH-USER = “root”

============

Terraform alphabetically sorts outputs by resource address, and there is not a way to change that behavior.