perfectsense / gyro

Gyro is a command-line tool for creating, updating, and maintaining cloud infrastructure. Gyro makes infrastructure-as-code possible.
https://gyro.dev
Apache License 2.0
134 stars 7 forks source link

Unessessary Updates to State File for Instance Tags #322

Closed ErikBZ closed 4 years ago

ErikBZ commented 4 years ago

Gyro will shift the positions of aws instance tags in the state file even if the keys and values were not updated.

-    'tags': {'Name': 'NAME qa serial-1 qa', 'beam.env': 'qa', 'beam.layer': 'qa', 'Project': 'NAME', 'beam.project': 'NAME', 'beam.serial': '1'}
+    'tags': {'Name': 'NAME qa serial-1 qa', 'Project': 'NAME', 'beam.project': 'NAME', 'beam.layer': 'qa', 'beam.serial': '1', 'beam.env': 'qa'}

These's values should stay consistent across gyro ups.

ErikBZ commented 4 years ago

Since using gyro 99.5 and aws-provider 99.3, this issue couldn't be reproduced