From 2d21729ae3dd5db206304d6c0153039eae82e2e9 Mon Sep 17 00:00:00 2001 From: Michael Wittig Date: Fri, 18 Aug 2023 10:45:59 +0200 Subject: [PATCH] fix --- state/s3.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/s3.yaml b/state/s3.yaml index 0c59c58fb..602af2fbb 100644 --- a/state/s3.yaml +++ b/state/s3.yaml @@ -158,7 +158,7 @@ Conditions: HasLambdaFunctionFilterPrefix: !Not [!Equals [!Ref LambdaFunctionFilterPrefix, '']] HasBlockPublicAccess: !Not [!Or [!Condition HasPublicReadAccess, !Condition HasPublicWriteAccess]] HasPermissionsBoundary: !Not [!Equals [!Ref PermissionsBoundary, '']] - HasBucketOwnerPreferred: !Or [!Condition HasCloudFrontAccessLogWrite, !Condition [HasS3AccessLogWrite], !Not [!Condition HasBlockPublicAccess]] + HasBucketOwnerPreferred: !Or [!Condition HasCloudFrontAccessLogWrite, !Condition HasS3AccessLogWrite, !Not [!Condition HasBlockPublicAccess]] Resources: Bucket: # cannot be deleted with data Type: 'AWS::S3::Bucket'