How It Works?
CloudFormation stacks that Takomo should manage are defined using configuration files located in the stacks directory. When you run a Takomo command, the following steps are taken:
- The configuration files are loaded and used to build a local state.
- Stacks currently deployed to the target accounts are queried to construct a remote state.
- The states are then compared to create an execution plan containing operations needed to bring the local state to match with the remote.
For example, when you run the deploy stacks command, Takomo updates stacks found from both the local and remote states. It then creates new stacks for the ones found only in the local state but not in the remote.
There Is No State
It's important to understand that Takomo doesn't store the infrastructure's state or operations it has executed anywhere. It relies solely on the configuration files' information to match locally defined stacks with the ones found in the target accounts.