Closed
Description
Expected Behavior
When working with S3 LifecycleTransition events
, the value of the sourceIPAddress
field is s3.amazonaws.com
instead of an IPv4 value. Additionally, the sequencer
field is only populated on PUT and delete object events.
Current Behavior
These fields are using incorrect data types.
Code snippet
No code snippet.
Steps to Reproduce
use this payload with this model.
{
"eventVersion":"2.3",
"eventSource":"aws:s3",
"awsRegion":"us-east-1",
"eventTime":"2025-02-21T21:46:45.775Z",
"eventName":"LifecycleTransition",
"userIdentity":{
"principalId":"s3.amazonaws.com"
},
"requestParameters":{
"sourceIPAddress":"s3.amazonaws.com"
},
"responseElements":{
"x-amz-request-id":"something-1",
"x-amz-id-2":"something-2"
},
"s3":{
"s3SchemaVersion":"1.0",
"configurationId":"some-sns",
"bucket":{
"name":"bucket-name",
"ownerIdentity":{
"principalId":"PRICIPAL"
},
"arn":"arn:aws:s3:::bucket-name"
},
"object":{
"key":"/path/to/file.parquet",
"size":12345,
"eTag":"abcdef1232423423",
"versionId":"SomeThingThere"
}
},
"lifecycleEventData":{
"transitionEventData":{
"destinationStorageClass":"INTELLIGENT_TIERING"
}
}
}
Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
22.x
Packaging format used
npm
Execution logs
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped