diff --git a/docs/send-data/collect-from-other-data-sources/collect-aws-lambda-logs-extension.md b/docs/send-data/collect-from-other-data-sources/collect-aws-lambda-logs-extension.md index d7973e25cc..aa8ec5f0f5 100644 --- a/docs/send-data/collect-from-other-data-sources/collect-aws-lambda-logs-extension.md +++ b/docs/send-data/collect-from-other-data-sources/collect-aws-lambda-logs-extension.md @@ -97,12 +97,22 @@ To package the Sumo Logic Lambda Extension with the AWS Lambda function created ``` 1. In your AWS Lambda container image Dockerfile, add the command below. - + ##### Create the target directory for extensions ```bash - ADD /sumologic-extension-.tar.gz /opt/ + RUN mkdir -p /opt/extensions ``` - -1. Validate if the extension is added to the directory and execute the below command. + ##### Create the target directory for extensions + ```bash + ADD /sumologic-extension-.tar.gz /opt/extensions + ``` + ##### Clean up any hidden files from the extracted content + ```bash + RUN find /opt/extensions -type f -name ".*" -delete + ``` + :::note + Any file placed under /opt/extensions is treated as an executable. Hidden files (such as ._filename) or non-binary files in this directory may also be executed, potentially causing unexpected behavior. + ::: +1. Validate if the extension is added to the directory and execute the command below. ```bash docker run -it --entrypoint sh :