If you want to get the AWS Account ID of your Lambda Function while it is running then you can use the code below. The code below is written in Ruby.
Continue reading How to get AWS Account ID in Lambda using RubyTag: AWS Lambda Ruby
How to get the Region of a Running AWS Lambda Function using Ruby
If you need to get the Region of your running Lambda Function then you should look for the AWS_REGION
in the Environment Variables.
Below is the code on how to access the AWS_REGION
Environment Variable using Ruby.
aws_region = ENV['AWS_REGION']
Continue reading How to get the Region of a Running AWS Lambda Function using Ruby