While possible, not really a correct tool, in my opinion. Terraform is much better, or CloudFormation for native tool
Yeah but can we configure installation of python libraries and automate running of scripts using terraform?
You should use Terraform to launch the instance, and use Ansible to configure it. But the correct way is to build the image already installed with requires libraries using Packer and launch it
Probably someone, drunk, did. Wrong tool, it's imperative. The infra needs to be managed with IaC tools. You don't manage the instances, because it won't work at scale. You manage the launch configuration and autoscaling. Look at what packer does, and drop ansible
Обсуждают сегодня