Skip to content

Commit a3892ca

Browse files
dougtoppinDoug Toppin
andauthored
add support for CloudFront logging to s3 object ownership changes (#464)
update xml2js version, add changelog entry run prettier, update snapshot, update versions update changelog with s3 change reason Co-authored-by: Doug Toppin <[email protected]>
1 parent 4e13895 commit a3892ca

File tree

13 files changed

+73
-57
lines changed

13 files changed

+73
-57
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [6.1.2] - 2023-04-14
9+
10+
### Changed
11+
12+
- added s3 bucket ownership control permission and ownership parameter to S3 logging bucket to account for [changes in S3 default behavior](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-faq.html)
13+
- changed xml2js version to 0.5.0
14+
815
## [6.1.1] - 2023-02-09
916

1017
### Added

source/constructs/lib/common-resources/custom-resources/custom-resource-construct.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export class CustomResourcesConstruct extends Construct {
8484
"s3:GetObject",
8585
"s3:PutObject",
8686
"s3:ListBucket",
87+
"s3:PutBucketOwnershipControls",
8788
],
8889
resources: [
8990
Stack.of(this).formatArn({

source/constructs/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/constructs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "constructs",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"description": "Serverless Image Handler Constructs",
55
"license": "Apache-2.0",
66
"bin": {

source/constructs/test/__snapshots__/constructs.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,7 @@ exports[`Serverless Image Handler Stack Snapshot 1`] = `
15811581
"s3:GetObject",
15821582
"s3:PutObject",
15831583
"s3:ListBucket",
1584+
"s3:PutBucketOwnershipControls",
15841585
],
15851586
"Effect": "Allow",
15861587
"Resource": {

source/custom-resource/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ async function createCloudFrontLoggingBucket(requestProperties: CreateLoggingBuc
618618
const createBucketRequestParams: CreateBucketRequest = {
619619
Bucket: bucketName,
620620
ACL: "log-delivery-write",
621+
ObjectOwnership: "ObjectWriter",
621622
};
622623
await s3Client.createBucket(createBucketRequestParams).promise();
623624

source/custom-resource/package-lock.json

Lines changed: 27 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/custom-resource/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "custom-resource",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"private": true,
55
"description": "Serverless Image Handler custom resource",
66
"license": "Apache-2.0",

source/image-handler/package-lock.json

Lines changed: 27 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/image-handler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "image-handler",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"private": true,
55
"description": "A Lambda function for performing on-demand image edits and manipulations.",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)