#!/bin/bash # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # extension name for registration must match exactly this script's name, otherwise registration will fail LAMBDA_EXTENSION_NAME="$(basename $0)" echo "Launching $LAMBDA_EXTENSION_NAME extension ..." # passing extension name as a mandatory argument instead of environment variable in order to avoid exporting that variable # can lead lead to a name collision with other extensions and/or Lambda Environment settings dotnet /opt/Corp.Demo.Extensions.EventCollector.dll "$LAMBDA_EXTENSION_NAME"