Is there a way to give the AWS region information ...
# help
s
Is there a way to give the AWS region information and API gateway url as a environment variable to Aws Lambda
m
The region can be accessed by the
AWS_REGION
env variable as it is provided by default. To pass the API Gateway URL as a variable you can just add it to the environment of the function: https://docs.serverless-stack.com/constructs/Function#setting-additional-props
f
Thanks @Maged Mortaga!
@satish venkatakrishnan if u console.log the
event
object inside ur function, the API Gateway url should be in there.
s
Thanks @Maged Mortaga / @Frank I will try the same
That worked