To get the AWS Region where your Lambda Function is running we need to access the Environment Variable AWS_REGION
.
To access the environment variable AWS_REGION
using Node.js Lambda Function we can use process.env.AWS_REGION
.
To get the AWS Region where your Lambda Function is running we need to access the Environment Variable AWS_REGION
.
To access the environment variable AWS_REGION
using Node.js Lambda Function we can use process.env.AWS_REGION
.
If you want to get the values of Environment Variables in AWS Lambda using Node.js runtime follow the instructions below.
To access the Environment Variables of Lambda Functions using Node.js or javascript simply use the code below.
const environmentVariable = process.env.ENVIRONMENT_VARIABLE
Let’s say that my environment variable has a name of DB_USER
, I will use the code below to get its value.
When I encountered the Network Error
when developing with AWS Cognito I panicked. I was connected to the internet so why am I getting a Network Error? Even the Console output was not helpful.
This happened to me during User Registration and Login.
Network Error
happening?By default, a type=submit
in a form
element will automatically refresh the page when it is clicked or triggered.