Re:Terraform should have remained stateless
by aussiedude on Saturday May 28, 2022 @12:39AM
(#31537654)
You can also use Ansible with Jinja2 templating to generate your Cloudformation templates.
Describe loops and other properties in Ansible and have it build out a complex Cloudformation template for it to deploy. Use an Ansible variable for your stack name so you update/delete an existing stack and your good to go. Could even break it down to environments so dev = smaller instances vs stage/prod etc.
Re:Terraform should have remained stateless
by anothernewdude on Monday June 06, 2022 @06:03PM
(#31646957)
That just shifts where the state is being stored. Once you use cloudformation, it's being stored on S3, which you can do with terraform anyway.
Wouldn't using troposphere[1] be easier?
If you want stateless, then you can use Ansible and use their providers. Enjoy spawning new instances everytime you change your infrastructure, rather than having existing ones change.