Skip to content

Commit 23a6265

Browse files
committed
updates to nodejs 20; adds blogpost reference to description
1 parent 7e6e42a commit 23a6265

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this
44
software and associated documentation files (the "Software"), to deal in the Software

functions/createPartitions.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: MIT-0
33
import { runQuery } from './util.mjs'
44

functions/moveAccessLogs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: MIT-0
33
import { S3Client } from "@aws-sdk/client-s3";
44
import { CopyObjectCommand } from '@aws-sdk/client-s3';

functions/transformPartition.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: MIT-0
33
import { runQuery } from './util.mjs'
44

functions/util.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: MIT-0
33
import { AthenaClient, GetQueryExecutionCommand, StartQueryExecutionCommand } from '@aws-sdk/client-athena';
44
const athena = new AthenaClient();

template.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Description: >
99
This way the data is easier to consume for big data tools (as Amazon
1010
Athena and AWS Glue).
1111
12+
Read the blog post
13+
https://aws.amazon.com/blogs/big-data/analyze-your-amazon-cloudfront-access-logs-at-scale/
14+
for further details about this sample asset (uksb-1tupboc62).
15+
1216
Parameters:
1317
ResourcePrefix:
1418
Type: String
@@ -45,7 +49,7 @@ Resources:
4549
Properties:
4650
CodeUri: functions/
4751
Handler: transformPartition.handler
48-
Runtime: nodejs18.x
52+
Runtime: nodejs20.x
4953
Timeout: 900
5054
Policies:
5155
- Version: '2012-10-17'
@@ -93,7 +97,7 @@ Resources:
9397
Properties:
9498
CodeUri: functions/
9599
Handler: createPartitions.handler
96-
Runtime: nodejs18.x
100+
Runtime: nodejs20.x
97101
Timeout: 5
98102
Policies:
99103
- Version: '2012-10-17'
@@ -134,7 +138,7 @@ Resources:
134138
Properties:
135139
CodeUri: functions/
136140
Handler: moveAccessLogs.handler
137-
Runtime: nodejs18.x
141+
Runtime: nodejs20.x
138142
Timeout: 30
139143
Policies:
140144
- Version: '2012-10-17'

0 commit comments

Comments
 (0)