Skip to content

Commit

Permalink
add support for CloudFront logging to s3 object ownership changes (#464)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dougtoppin and Doug Toppin authored Apr 17, 2023
1 parent 4e13895 commit a3892ca
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 57 deletions.
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

0 comments on commit a3892ca

Please sign in to comment.