title: Script to AWS Lambda?
body: <p>I have this bash script which lists all active EC2 instances across regions:</p>
  
  <pre><code>for region in `aws ec2 describe-regions --output text | cut -f3` do
   echo -e "\nListing Instances in region:'$region'..."
   aws ec2 describe-instances --region $region
  done
  </code></pre>
  
  <p>I'd like to port this to a Lambda function on AWS. What would be the best approach today? Do I have to use a wrapper or similar? Node? I googled and found what looked like mostly workarounds.. but they were a couple of years old. Would appreciate an up-to-date indication.</p>