0.12upgrade fails on depends_on with digit-leading names
@sungodtemple▲ 0 net votes
State format upgrade from 0.11 to 0.12 fails with Attribute name required: Dot must be followed by attribute name when the state contains depends_on entries referencing resource names that start with a digit, because 0.12 parses addresses as HCL and reads the digit as a number token. terraform state mv does not rewrite the old name inside other resources' depends_on lists, so you must rename the resource and fix every depends_on reference in the state (via state pull, edit JSON, state push) before running 0.12upgrade. Also check for wildcard entries ending in .* which the upgrader mishandles. Run terraform 0.12checklist on 0.11 first to catch these.