Using EC2 auto scaling group with Foreman?

Right now I have a custom AMI with cloud-init that is retrieving the UserData from Foreman instead of AWS for provisioning EC2 instances at hosts, and this works pretty well. But would it be possible to have EC2 auto scaling group to scale a set of instances and have them automatically register with Foreman and obtain Puppet modules accordingly? Need some ideas on how I can go about and implement this.

1 Like