Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add support for CloudFront logging to s3 object ownership changes
update xml2js version, add changelog entry
run prettier, update snapshot, update versions
update changelog with s3 change reason
  • Loading branch information
Doug Toppin committed Apr 14, 2023
commit 188626a3bbb7524201cadff8544c947154af74ff
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [6.1.2] - 2023-04-14

### Changed

- 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)
- changed xml2js version to 0.5.0

## [6.1.1] - 2023-02-09

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class CustomResourcesConstruct extends Construct {
"s3:GetObject",
"s3:PutObject",
"s3:ListBucket",
"s3:PutBucketOwnershipControls",
],
resources: [
Stack.of(this).formatArn({
Expand Down
4 changes: 2 additions & 2 deletions source/constructs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/constructs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "constructs",
"version": "6.1.1",
"version": "6.1.2",
"description": "Serverless Image Handler Constructs",
"license": "Apache-2.0",
"bin": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1581,6 +1581,7 @@ exports[`Serverless Image Handler Stack Snapshot 1`] = `
"s3:GetObject",
"s3:PutObject",
"s3:ListBucket",
"s3:PutBucketOwnershipControls",
],
"Effect": "Allow",
"Resource": {
Expand Down
1 change: 1 addition & 0 deletions source/custom-resource/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ async function createCloudFrontLoggingBucket(requestProperties: CreateLoggingBuc
const createBucketRequestParams: CreateBucketRequest = {
Bucket: bucketName,
ACL: "log-delivery-write",
ObjectOwnership: "ObjectWriter",
};
await s3Client.createBucket(createBucketRequestParams).promise();

Expand Down
51 changes: 27 additions & 24 deletions source/custom-resource/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/custom-resource/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-resource",
"version": "6.1.1",
"version": "6.1.2",
"private": true,
"description": "Serverless Image Handler custom resource",
"license": "Apache-2.0",
Expand Down
51 changes: 27 additions & 24 deletions source/image-handler/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/image-handler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "image-handler",
"version": "6.1.1",
"version": "6.1.2",
"private": true,
"description": "A Lambda function for performing on-demand image edits and manipulations.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion source/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "source",
"version": "6.1.1",
"version": "6.1.2",
"private": true,
"description": "ESLint and prettier dependencies to be used within the solution",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions source/solution-utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/solution-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solution-utils",
"version": "6.1.1",
"version": "6.1.2",
"private": true,
"description": "Utilities to be used within this solution",
"license": "Apache-2.0",
Expand Down