How do I use Lambda to run bash code on an EC2? [closed] October 3, 2023 by Shemaro I’d like to have Lambda execute a predefined bash script on a running EC2 instance. How do I do this?