forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(s3): date-based partitioning for log objects (aws#28790)
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*
- Loading branch information
1 parent
c1b4138
commit f101d12
Showing
11 changed files
with
746 additions
and
26 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...ws-s3/test/integ.bucket.server-access-logs.js.snapshot/aws-cdk-s3-access-logs.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
2 changes: 1 addition & 1 deletion
2
...ting/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.js.snapshot/cdk.out
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...r-access-logs.js.snapshot/cdkintegs3accesslogsDefaultTestDeployAssert37A16466.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...g/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.js.snapshot/integ.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 28 additions & 2 deletions
30
...ramework-integ/test/aws-s3/test/integ.bucket.server-access-logs.js.snapshot/manifest.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.