I would refer this doc for the error and make sure the Syntax and steps are accurate.
Regarding Cookie Logging, The Cookie header in the request, including name—value pairs and the associated attributes.
If you enable cookie logging, CloudFront logs the cookies in all requests regardless of which cookies you choose to forward to the origin. When a request doesn’t include a cookie header, this field’s value is a hyphen (-). Refer https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html to check for more use-cases and features.
S3 Website Redirectasked 9 months ago
Private S3 bucket and http referer policy for a Wordpress site not workingasked 2 years ago
Cloudfront X S3 website + secondary bucket for specific mediaAccepted Answerasked 2 months ago
OAI or not OAI for serving a static website in S3 using CloudFrontasked 6 months ago
Route 53 to S3 - partially working, mostly not working as requiredasked 4 years ago
S3 bucket policy to allow CloudFront loggingAccepted Answerasked 2 months ago
Cloudfront can not serve s3 website via custom origin deployed via Serverless Frameworkasked 2 months ago
S3 Bucket + Route 53 + CloudFrontAccepted Answerasked 4 years ago
S3 Static Website RoutingRules when using Cloudfront and a domain nameasked 3 years ago
Correct process for configuring S3 bucket so ONLY Cloudfront can access?asked 3 years ago