aws-samples / aws-samples/amazon-cloudfront-continuousdeployment-cicd

Missing S3 bucket for `cloudfront-continuous-deployment-bucket-accesslogging`

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Hi Jason,

Thanks for clearing the previous issue with steps quickly. Btw, there are 2 connected issues that I'm encountering regarding the `staging_cloudfront_distribution` Cloudformation template:

1. S3 Bucket `cloudfront-continuous-deployment-bucket-accesslogging.s3.amazonaws.com` does not exist and is not inside the `pipeline.yml`, and it wasn't mentioned in the documentation if manual creation is needed as well.
2. When I try creating the S3 bucket manually, commit the file to trigger the Pipeline, I encounter another error as described below:

`Resource handler returned message: "Access denied for operation 'AWS::CloudFront::Distribution: You don't have permission to access the S3 bucket for CloudFront logs: cloudfront-continuous-deployment-bucket-accesslogging.s3.amazonaws.com If you're using IAM, you need s3:GetBucketAcl and s3:PutBucketAcl permissions to create a distribution or to update log settings for an existing distribution. In addition, the S3 ACL for the bucket must grant you FULL_CONTROL. `

Screen Shot 2024-01-18 at 2 11 49 PM

Screen Shot 2024-01-18 at 2 12 07 PM

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.