dry-keyboard-94795
01/31/2023, 8:59 AMimport
through ResourceOptions, generating code via another stack if the resources had larger definitions.
The drifted resources needed conditionals on inputs, "ignore Changes" setting, or modifying from the console so that they'd import. Effectively, no way to do "import and fix drift" without modifying code.
The limitation is documented. It's also the biggest blocker, as it prevents us saying "the existing infrastructure was incorrect in the first place, respect my code".
I can absolutely see how dealing with drift can be a major inconvenience in trying to adopt large existing infrastructure. We were lucky in that much had been previously created with scripts as apposed to using a console or CLI directly.
Other infrastructure I've worked on would not be as clean, perhaps even resulting in a decision to just do a rebuild (had one case where this was necessary, but the infra was in a dire state anyway).
Multiple stacks was less of a hurdle, but added a little more complexity as we needed to account for drift from multiple sources.miniature-musician-31262
01/31/2023, 5:55 PM