-
-
Notifications
You must be signed in to change notification settings - Fork 347
feat: Addition of Amazon S3 Event Notifications #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
333d698
addition of s3 events notifications
schniber f88ccf8
update to python3.12 and fix the dns suffix to be dynamically fetched…
schniber 3912bdc
fix doc
schniber fa6e15f
fix example
schniber 4f5f22b
Merge branch 'terraform-aws-modules:master' into master
schniber 1a3331e
rollback to python3.11 and revert back of pipfile contents as per pee…
schniber 80b7315
rollback to python3.11 and revert back of pipfile contents as per pee…
schniber bc8209c
rollback to python3.11 and revert back of pipfile contents as per pee…
schniber 1100a35
rollback the SNS Service principal to sns.amazonaws.com
schniber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.12" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"eventVersion": "2.3", | ||
"eventSource": "aws:s3", | ||
"awsRegion": "eu-west-1", | ||
"eventTime": "2024-12-13T21:24:59.306Z", | ||
"eventName": "ObjectAcl:Put", | ||
"userIdentity": { | ||
"principalId": "AWS:AXXXXXXXXXXXXXXXXXXXX:test" | ||
}, | ||
"requestParameters": { | ||
"sourceIPAddress": "1.1.1.1" | ||
}, | ||
"responseElements": { | ||
"x-amz-request-id": "XXXXXXXXXXXXXXXX", | ||
"x-amz-id-2": "kJnocM4etuvc6BN1KT31BpAydhXF+3krucrYYGydPe44CasqrjWd4QM28pRvGM4Sg8T/IldaDqYrhD3TiOBDvIMSzwufbDO6" | ||
}, | ||
"s3": { | ||
"s3SchemaVersion": "1.0", | ||
"configurationId": "test", | ||
"bucket": { | ||
"name": "test", | ||
"ownerIdentity": { | ||
"principalId": "AXXXXXXXXXXXXX" | ||
}, | ||
"arn": "arn:aws:s3:::test" | ||
}, | ||
"object": { | ||
"key": "test.png", | ||
"eTag": "24979f2d8bb004928be4e6d87888f857" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"eventVersion": "2.1", | ||
"eventSource": "aws:s3", | ||
"awsRegion": "eu-west-1", | ||
"eventTime": "2024-12-12T14:44:56.042Z", | ||
"eventName": "ObjectCreated:CompleteMultipartUpload", | ||
"userIdentity": { | ||
"principalId": "AWS:AXXXXXXXXXXXXXXXXXXXX:test" | ||
}, | ||
"requestParameters": { | ||
"sourceIPAddress": "1.1.1.1" | ||
}, | ||
"responseElements": { | ||
"x-amz-request-id": "22HVMTY7K7BZEANW", | ||
"x-amz-id-2": "7JNov8pldcSneqm8P52a3uaVaI5E+X3EPgnFcHUOta5iC2VHORDQlkOHa3pghQY9Px5p7RgphoJAu6EZFzKVWft3PHccuUhC" | ||
}, | ||
"s3": { | ||
"s3SchemaVersion": "1.0", | ||
"configurationId": "backup", | ||
"bucket": { | ||
"name": "test", | ||
"ownerIdentity": { | ||
"principalId": "AXXXXXXXXXXXXX" | ||
}, | ||
"arn": "arn:aws:s3:::test" | ||
}, | ||
"object": { | ||
"key": "test.png", | ||
"size": 557056, | ||
"eTag": "7d347f0d62d856c4dceef44b413b5bb2-1", | ||
"versionId": "2EkRWHmQowiCXIVHSfD48cKVfS87iBZ4", | ||
"sequencer": "00657871E7BEB1C11D" | ||
} | ||
} | ||
} | ||
] | ||
} |
38 changes: 38 additions & 0 deletions
38
functions/events/s3_object_delete_marker_notification.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"eventVersion": "2.1", | ||
"eventSource": "aws:s3", | ||
"awsRegion": "eu-west-1", | ||
"eventTime": "2024-12-12T15:43:47.889Z", | ||
"eventName": "ObjectRemoved:DeleteMarkerCreated", | ||
"userIdentity": { | ||
"principalId": "AWS:AXXXXXXXXXXXXXXXXXXXX:test" | ||
}, | ||
"requestParameters": { | ||
"sourceIPAddress": "1.1.1.1" | ||
}, | ||
"responseElements": { | ||
"x-amz-request-id": "FSFTKP0F7F4GAYJ7", | ||
"x-amz-id-2": "DLuIxXz8rgdn14lRySy0xePLTs+LL+3Azm4bpGudx7Bqax+t7bWUdKMUuJQf/lmXDaaUEnG+e67kEI4/kdI2LzAI/D+XXUnK" | ||
}, | ||
"s3": { | ||
"s3SchemaVersion": "1.0", | ||
"configurationId": "backup", | ||
"bucket": { | ||
"name": "test", | ||
"ownerIdentity": { | ||
"principalId": "AXXXXXXXXXXXXX" | ||
}, | ||
"arn": "arn:aws:s3:::test" | ||
}, | ||
"object": { | ||
"key": "test.png", | ||
"eTag": "d41d8cd98f00b204e9800998ecf8427e", | ||
"versionId": "4hWOOw8KrqaXtuiI9NpQzoFNDmnnlJlw", | ||
"sequencer": "0065787FB3DCA9D828" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"eventVersion": "2.3", | ||
"eventSource": "aws:s3", | ||
"awsRegion": "eu-west-1", | ||
"eventTime": "2024-12-12T16:57:37.808Z", | ||
"eventName": "ObjectTagging:Put", | ||
"userIdentity": { | ||
"principalId": "AWS:AXXXXXXXXXXXXXXXXXXXX:test" | ||
}, | ||
"requestParameters": { | ||
"sourceIPAddress": "1.1.1.1" | ||
}, | ||
"responseElements": { | ||
"x-amz-request-id": "CC3E1ZWK9W1X12HF", | ||
"x-amz-id-2": "aXF6jUEXS9805Oa5ZTQgoXJCzUMt0ZCi/vRaB8EQK9O/b723Ct9A/oeAiF/U92GEnA5/cJ1ZUcyo0NSmOqVyaHq1jKz+rSF+" | ||
}, | ||
"s3": { | ||
"s3SchemaVersion": "1.0", | ||
"configurationId": "backup", | ||
"bucket": { | ||
"name": "test", | ||
"ownerIdentity": { | ||
"principalId": "AXXXXXXXXXXXXX" | ||
}, | ||
"arn": "arn:aws:s3:::test" | ||
}, | ||
"object": { | ||
"key": "test.png", | ||
"eTag": "6dfa2bd9148dd380b5d56bd1366787f6", | ||
"versionId": "wzGflBz2kJXzspA4UQ0Ik333dbvePdnP" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"eventVersion": "2.1", | ||
"eventSource": "aws:s3", | ||
"awsRegion": "eu-west-1", | ||
"eventTime": "2024-12-12T17:04:47.117Z", | ||
"eventName": "ObjectRemoved:Delete", | ||
"userIdentity": { | ||
"principalId": "AWS:AXXXXXXXXXXXXXXXXXXXX:test" | ||
}, | ||
"requestParameters": { | ||
"sourceIPAddress": "1.1.1.1" | ||
}, | ||
"responseElements": { | ||
"x-amz-request-id": "E3MKJZCF0A5CKYQB", | ||
"x-amz-id-2": "2qsHsa9aFfq+oOIl837VxPlE/Xq3Ii2hQ9p3WaCXF22cwSoH1gtg9K0u86hDy8BdorKhpiR0dA/9VSQ2TFoeSAkZ1vH6/kZO" | ||
}, | ||
"s3": { | ||
"s3SchemaVersion": "1.0", | ||
"configurationId": "backup", | ||
"bucket": { | ||
"name": "test", | ||
"ownerIdentity": { | ||
"principalId": "AXXXXXXXXXXXXX" | ||
}, | ||
"arn": "arn:aws:s3:::test" | ||
}, | ||
"object": { | ||
"key": "test.png", | ||
"versionId": "sSHvWiZd1mM73EqLISh8ammc3JresZcC", | ||
"sequencer": "00657892AF1C2D606B" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"eventVersion": "2.2", | ||
"eventSource": "aws:s3", | ||
"awsRegion": "eu-west-1", | ||
"eventTime": "2024-12-12T17:04:56.129Z", | ||
"eventName": "Replication:OperationFailedReplication", | ||
"userIdentity": { | ||
"principalId": "s3.amazonaws.com" | ||
}, | ||
"requestParameters": { | ||
"sourceIPAddress": "s3.amazonaws.com" | ||
}, | ||
"responseElements": { | ||
"x-amz-request-id": "a8f51c21-9f7d-4619-b54f-eb6577b67a82", | ||
"x-amz-id-2": "4cWlLlh7RJD8eHJfb7EKfNnnSiDiZjvRBUMPl5rq5wsCSiRF+QePRr0nW9ku2wd2eOJc0TBxf27AxAbL9Irl0A==" | ||
}, | ||
"s3": { | ||
"s3SchemaVersion": "1.0", | ||
"configurationId": "backup", | ||
"bucket": { | ||
"name": "test", | ||
"ownerIdentity": { | ||
"principalId": "111222333444" | ||
}, | ||
"arn": "arn:aws:s3:::test" | ||
}, | ||
"object": { | ||
"key": "test.png", | ||
"size": 1024, | ||
"eTag": "d41d8cd98f00b204e9800998ecf8427e", | ||
"versionId": "sSHvWiZd1mM73EqLISh8ammc3JresZcC", | ||
"sequencer": "00657892A0790CB714" | ||
} | ||
}, | ||
"replicationEventData": { | ||
"replicationRuleId": "Replication", | ||
"destinationBucket": "arn:aws:s3:::test-replica", | ||
"s3Operation": "OBJECT_DELETE", | ||
"requestTime": "2024-12-12T17:04:32.489Z", | ||
"failureReason": "SrcObjectNotFound" | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"eventVersion": "2.1", | ||
"eventSource": "aws:s3", | ||
"awsRegion": "eu-west-1", | ||
"eventTime": "2024-12-12T14:44:56.042Z", | ||
"eventName": "ObjectCreated:CompleteMultipartUpload", | ||
"userIdentity": { | ||
"principalId": "AWS:AXXXXXXXXXXXXXXXXXXXX:test" | ||
}, | ||
"requestParameters": { | ||
"sourceIPAddress": "1.1.1.1" | ||
}, | ||
"responseElements": { | ||
"x-amz-request-id": "22HVMTY7K7BZEANW", | ||
"x-amz-id-2": "7JNov8pldcSneqm8P52a3uaVaI5E+X3EPgnFcHUOta5iC2VHORDQlkOHa3pghQY9Px5p7RgphoJAu6EZFzKVWft3PHccuUhC" | ||
}, | ||
"s3": { | ||
"s3SchemaVersion": "1.0", | ||
"configurationId": "backup", | ||
"bucket": { | ||
"name": "test", | ||
"ownerIdentity": { | ||
"principalId": "AXXXXXXXXXXXXX" | ||
}, | ||
"arn": "arn:aws:s3:::test" | ||
}, | ||
"object": { | ||
"key": "test.png", | ||
"size": 557056, | ||
"eTag": "7d347f0d62d856c4dceef44b413b5bb2-1", | ||
"versionId": "2EkRWHmQowiCXIVHSfD48cKVfS87iBZ4", | ||
"sequencer": "00657871E7BEB1C11D" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.