Skip to content

Commit 6e5c576

Browse files
authored
Merge pull request #46 from aws-solutions/feature/v2.6.2
Update to version v2.6.2
2 parents 4f163c1 + d775a57 commit 6e5c576

File tree

6 files changed

+495
-235
lines changed

6 files changed

+495
-235
lines changed

CHANGELOG.md

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

7+
## [2.6.2] - 2023-04
8+
### Fixed
9+
- Changed the Object Ownership for logging bucket from 'Object writer' to 'Bucket owner enforced' to mitigate the impact caused by new S3 default settings.
10+
- Updated S3 bucket policy to support access logging.
11+
712
## [2.6.1] - 2023-04
813
### Added
914
- Added support to block customer misconfiguration for 'Terminate Unused Workspaces' feature. The feature will terminate workspaces only on the last day of the month to avoid accidental termination due to misconfiguration.

source/cdk.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"context": {
44
"solution_id": "SO0018",
55
"solution_name": "cost-optimizer-for-amazon-workspaces",
6-
"solution_version": "%%VERSION%%"
6+
"solution_version": "%%VERSION%%",
7+
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true
78
},
89
"versionReporting": false
910
}

source/lib/components/usage-report-bucket-resources.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import {Construct} from "constructs";
55
import * as cdk from "aws-cdk-lib";
6-
import { Bucket, BlockPublicAccess, BucketEncryption, BucketAccessControl, BucketPolicy } from "aws-cdk-lib/aws-s3";
6+
import { Bucket, BlockPublicAccess, BucketEncryption, BucketPolicy } from "aws-cdk-lib/aws-s3";
77
import overrideLogicalId from "../cdk-helper/override-logical-id";
88
import { addCfnNagSuppression } from "../cdk-helper/add-cfn-nag-suppression";
99

@@ -18,7 +18,6 @@ export class UsageReportBucketResources extends Construct {
1818
blockPublicAccess: BlockPublicAccess.BLOCK_ALL,
1919
encryption: BucketEncryption.S3_MANAGED,
2020
removalPolicy: cdk.RemovalPolicy.RETAIN,
21-
accessControl: BucketAccessControl.LOG_DELIVERY_WRITE,
2221
enforceSSL: true
2322
})
2423
overrideLogicalId(accessLoggingBucket, 'LogsBucket')

0 commit comments

Comments
 (0)