I'm working on deploying some servers in the AWS cloud with another engineer. We have written the IaC in Terraform and Terragrunt to provision an Auto-scaling Group. We were wondering what would be the proper approach for configuring the ec2 instances that are created by the ASG:
- Ansible or,
- Use the User Data in the launch configuration to run a bash script
In the user data script, we are writing some configuration files, importing some secrets and running a few containers.