You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the internal testing of the Amazon Security Lake integration, it was reported a failure on the AWS Lambda function caused by Access Denied error.
START RequestId: 2a5345ff-6116-422d-a858-713b9216cc86 Version: $LATEST
[ERROR] 2024-05-28T12:15:23.482Z 2a5345ff-6116-422d-a858-713b9216cc86 Failed to read S3 object sample.txt from bucket wazuh-aws-security-lake-raw: An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
[ERROR] IndexError: list index out of range
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 170, in lambda_handler
parquet_key = get_full_key(src_location, account_id, region, key, 'parquet')
File "/var/task/lambda_function.py", line 112, in get_full_key
filename = ''.join(filename_parts[2].split('-'))END RequestId: 2a5345ff-6116-422d-a858-713b9216cc86
REPORT RequestId: 2a5345ff-6116-422d-a858-713b9216cc86 Duration: 201.11 ms Billed Duration: 202 ms Memory Size: 512 MB Max Memory Used: 162 MB Init Duration: 1350.08 ms
Tasks
Investigate why this is happening, as the User running the Lambda is the owner of the S3 Bucket.
Improve the code to handle that exception.
The text was updated successfully, but these errors were encountered:
During the AWS Lambda configuration, it's needed to grant permissions to the Lambda function to access the S3 bucket, as seen in this guide. That solves the issue.
Description
During the internal testing of the Amazon Security Lake integration, it was reported a failure on the AWS Lambda function caused by Access Denied error.
Tasks
The text was updated successfully, but these errors were encountered: