0.1.31 • Published 8 months ago

@gammarers/aws-cloudfront-access-log-relocater v0.1.31

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

AWS CloudFront Access Log Relocater

GitHub npm (scoped) GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

This AWS CDK construct modifies the storage format of CloudFront logs in S3 to make them easier to query with Athena and Glue. By enabling event notifications to EventBridge for logs generated by CloudFront, it detects their creation and uses a Step Functions state machine to copy them to a specified S3 bucket (with a specified prefix) while also providing functionality to delete the original files.

Install

TypeScript

install by npm

npm install @gammarers/aws-cloudfront-access-log-relocater

install by yarn

yarn add @gammarers/aws-cloudfront-access-log-relocater

Example

import { CloudFrontAccessLogRelocater } from '@gammarers/aws-cloudfront-access-log-relocater';

declare const logBucket: s3.Bucket;

new CloudFrontAccessLogRelocater(stack, 'CloudFrontAccessLogRelocater', {
  accessLogSource: {
    bucket: logBucket,
    objectPrefix: 'origin-logs',
  },
  accessLogDestination: {
    bucket: logBucket,
    objectPrefix: 'partitioning-log',
  },
});

License

This project is licensed under the Apache-2.0 License.

0.1.31

8 months ago

0.1.30

8 months ago

0.1.29

8 months ago

0.1.28

9 months ago

0.1.27

9 months ago

0.1.26

9 months ago

0.1.25

9 months ago

0.1.24

10 months ago

0.1.23

10 months ago

0.1.22

10 months ago

0.1.21

10 months ago

0.1.20

11 months ago

0.1.19

11 months ago

0.1.18

11 months ago

0.1.17

11 months ago

0.1.16

11 months ago

0.1.15

12 months ago

0.1.14

12 months ago

0.1.13

12 months ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago