dtan4 / terraforming

Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained
http://terraforming.dtan4.net/
MIT License
4.3k stars 656 forks source link

Sort values inside array for consistent output #331

Open lyoungblood opened 7 years ago

lyoungblood commented 7 years ago

When running terraforming multiple times against the same infrastructure, values in an array (such as multiple CloudWatch alarms) will appear in a random order. Example:

First run: alarm_actions = ["arn:aws:automate:us-east-1:ec2:recover", "arn:aws:sns:us-east-1::us-east-dw01-default-alarms"]

Second run: alarm_actions = ["arn:aws:sns:us-east-1::us-east-dw01-default-alarms", "arn:aws:automate:us-east-1:ec2:recover"]

It would be nice if terraforming could sort the array for consistent output every time it is executed.

pchaganti commented 7 years ago

👍