Get the service name from the environment variables.
This is determined by the POWERTOOLS_SERVICE_NAME environment variable.
POWERTOOLS_SERVICE_NAME
import { getServiceName } from '@aws-lambda-powertools/commons/utils/env';const serviceName = getServiceName(); Copy
import { getServiceName } from '@aws-lambda-powertools/commons/utils/env';const serviceName = getServiceName();
Get the service name from the environment variables.
This is determined by the
POWERTOOLS_SERVICE_NAME
environment variable.