feat(s3): date-based partitioning for log objects#28790
Merged
mergify[bot] merged 10 commits intoaws:mainfrom Jan 25, 2024
Merged
feat(s3): date-based partitioning for log objects#28790mergify[bot] merged 10 commits intoaws:mainfrom
mergify[bot] merged 10 commits intoaws:mainfrom
Conversation
aaythapa
reviewed
Jan 22, 2024
Contributor
aaythapa
left a comment
There was a problem hiding this comment.
Thank you for your contribution, looks great overall! Just one question.
Contributor
Author
|
Thanks for your review @aaythapa ! |
aaythapa
reviewed
Jan 23, 2024
Collaborator
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Contributor
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Vandita2020
pushed a commit
to Vandita2020/aws-cdk
that referenced
this pull request
Jan 30, 2024
S3 server access logging newly supports date-based partitioning.
This feature allows key formats of log objects to be partitioned by date, which is useful when querying from Athena.
In CloudFormation, `TargetObjectKeyFormat` was added.
This object has the `PartitionedPrefix` and the `SimplePrefix` property, only one of which is allowed.
The `SimplePrefix` is the key format that originally existed.
The `PartitionedPrefix` is the new key format and allows the user to select either the event time or delivery time as the date source.
```yaml
Resources:
S3BucketServerAccessLogEnabledTest:
Type: AWS::S3::Bucket
Properties:
BucketName: access-log-test
LoggingConfiguration:
DestinationBucketName: myDestinationBucket
LogFilePrefix: 'hello'
TargetObjectKeyFormat:
# You can deploy in either of the following formats
SimplePrefix: {} # 1
PartitionedPrefix: {} # 2
PartitionedPrefix: # 3
PartitionDateSource: EventTime # | DeliveryTime
```
whats-new
https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-s3-server-access-logging-date-partitioning
CloudFormation User Guides
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfiguration.html#cfn-s3-bucket-loggingconfiguration-targetobjectkeyformat
S3 User Guides
https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html#server-access-logging-overview
Closes aws#28141
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
SankyRed
pushed a commit
that referenced
this pull request
Feb 8, 2024
S3 server access logging newly supports date-based partitioning.
This feature allows key formats of log objects to be partitioned by date, which is useful when querying from Athena.
In CloudFormation, `TargetObjectKeyFormat` was added.
This object has the `PartitionedPrefix` and the `SimplePrefix` property, only one of which is allowed.
The `SimplePrefix` is the key format that originally existed.
The `PartitionedPrefix` is the new key format and allows the user to select either the event time or delivery time as the date source.
```yaml
Resources:
S3BucketServerAccessLogEnabledTest:
Type: AWS::S3::Bucket
Properties:
BucketName: access-log-test
LoggingConfiguration:
DestinationBucketName: myDestinationBucket
LogFilePrefix: 'hello'
TargetObjectKeyFormat:
# You can deploy in either of the following formats
SimplePrefix: {} # 1
PartitionedPrefix: {} # 2
PartitionedPrefix: # 3
PartitionDateSource: EventTime # | DeliveryTime
```
whats-new
https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-s3-server-access-logging-date-partitioning
CloudFormation User Guides
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfiguration.html#cfn-s3-bucket-loggingconfiguration-targetobjectkeyformat
S3 User Guides
https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html#server-access-logging-overview
Closes #28141
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
S3 server access logging newly supports date-based partitioning.
This feature allows key formats of log objects to be partitioned by date, which is useful when querying from Athena.
In CloudFormation,
TargetObjectKeyFormatwas added.This object has the
PartitionedPrefixand theSimplePrefixproperty, only one of which is allowed.The
SimplePrefixis the key format that originally existed.The
PartitionedPrefixis the new key format and allows the user to select either the event time or delivery time as the date source.whats-new
https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-s3-server-access-logging-date-partitioning
CloudFormation User Guides
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfiguration.html#cfn-s3-bucket-loggingconfiguration-targetobjectkeyformat
S3 User Guides
https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html#server-access-logging-overview
Closes #28141
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license