Skip to content

Instantly share code, notes, and snippets.

@vikas891
Last active October 27, 2023 08:43
Show Gist options
  • Save vikas891/7554a6a030d3eca38b5d25f8e7cce4e0 to your computer and use it in GitHub Desktop.
Save vikas891/7554a6a030d3eca38b5d25f8e7cce4e0 to your computer and use it in GitHub Desktop.
Sample Event
{
"eventVersion": "1.09",
"userIdentity": {
"type": "IAMUser",
"principalId": "AIDARSCCN4A3X2YWZ37ZI",
"arn": "arn:aws:iam::107513503799:user/temp-user",
"accountId": "107513503799",
"accessKeyId": "AKIARSCCN4A3WD4RO4P4",
"userName": "temp-user"
},
"eventTime": "2023-08-26T20:35:56Z",
"eventSource": "s3.amazonaws.com",
"eventName": "ListObjects",
"awsRegion": "us-east-1",
"sourceIPAddress": "84.32.71.33",
"userAgent": "[aws-cli/1.27.74 Python/3.10.6 Linux/5.15.90.1-microsoft-standard-WSL2 botocore/1.29.74]",
"errorCode": "AccessDenied",
"errorMessage": "Access Denied",
"requestParameters": {
"list-type": "2",
"bucketName": "emergency-data-recovery",
"encoding-type": "url",
"prefix": "",
"delimiter": "/",
"Host": "emergency-data-recovery.s3.amazonaws.com"
},
"responseElements": null,
"additionalEventData": {
"SignatureVersion": "SigV4",
"CipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
"bytesTransferredIn": 0,
"AuthenticationMethod": "AuthHeader",
"x-amz-id-2": "q9TsSW1BnowYv+zugsIlX090vco3sQoqNqOL5ps6mBcjExJYjYkezvvYdDhdv1AjQxsYUgyV+ZfRKxrw7zVq4wzoiqpjhl8j7mYpN0IGlEI=",
"bytesTransferredOut": 275
},
"requestID": "NG10BSS4SMQP47P2",
"eventID": "a02cc8e0-a02b-4999-aada-da57265d198f",
"readOnly": true,
"resources": [
{
"type": "AWS::S3::Object",
"ARNPrefix": "arn:aws:s3:::emergency-data-recovery/"
},
{
"accountId": "107513503799",
"type": "AWS::S3::Bucket",
"ARN": "arn:aws:s3:::emergency-data-recovery"
}
],
"eventType": "AwsApiCall",
"managementEvent": false,
"recipientAccountId": "107513503799",
"eventCategory": "Data",
"tlsDetails": {
"tlsVersion": "TLSv1.2",
"cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
"clientProvidedHostHeader": "emergency-data-recovery.s3.amazonaws.com"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment