Aws_autoscaling_group w/module

I am able to launch a ec2 instance with an internal built module. I would like to launch bunch of these using aws_autoscaling_group. How can I acheive this?