API Reference
    Preparing search index...
    • Get the service name from the environment variables.

      This is determined by the POWERTOOLS_SERVICE_NAME environment variable.

      Returns string

      import { getServiceName } from '@aws-lambda-powertools/commons/utils/env';

      const serviceName = getServiceName();