I need the elastic beanstalk instances which is launched with my custom AMI to run some userdata i.e: bash scripts.
I want to copy some files and execute my application .jar in user-data which is bundled in my custom AMI which has been created using packer.
Is there any way to do this with AWS elastic beanstalk?