-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[aws-cloudfront] logging bucket defined using url and not bucket name #10512
Comments
Thanks for the bug report. This actually seems a bit like a quirk in how the console(s) handle regional vs global S3 bucket domains, but it's a pretty easy (and non-invasive) change to fix. Per the CloudFormation docs, the Bucket property should be:
This is the domain name of the bucket, whereas the CloudFront CDK constructs today are using the regional domain name. Logging still works with this configuration, but this new CloudFront Logs section of the console isn't handling the link well. For your last screenshot, if you go to So while everything's technically working here, it does seem CloudFront is expecting the global -- not the regional -- bucket domain, and fixing it will make the console experience a bit smoother. |
According to the CloudFront docs, the logging bucket should be specified as the bucket domain name. #2554 updated origin buckets to use the regional bucket domain names -- which is correct -- but also incorrectly updated the logging bucket specifications as well. This has a minor impact of being unable to navigate to the logging bucket from the CloudFront console, but otherwise the logs are stored correctly. fixes #10512
According to the CloudFront docs, the logging bucket should be specified as the bucket domain name. #2554 updated origin buckets to use the regional bucket domain names -- which is correct -- but also incorrectly updated the logging bucket specifications as well. This has a minor impact of being unable to navigate to the logging bucket from the CloudFront console, but otherwise the logs are stored correctly. fixes #10512 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Looks like it’s not all partitions CloudFront allowing the global s3 domain name. My CDK app met below error after upgrading to
The fix introduces a regression bug to break the CloudFront distribution with logging bucket.
|
This reverts #10512. The logging buckets were originally using the regional domain names, but this caused odd behavior with CloudFront's new console "Logs" experience. #10512 switched logging buckets to use the global domain name, which addressed the console issue but broke customers in CN regions. We will follow up internally to improve the CloudFront console issue. fixes #10923
When deploying a
CloudFrontWebDistribution
with an existing bucket, the deployed configuration'sLogging.Bucket
is the FQDN of the bucket and not the bucket name.Reproduction Steps
What did you expect to happen?
Logging bucket is specified by name:
What actually happened?
Logging bucket is specified by name:
In addition, logs never appear in this bucket. Even after a few days.
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: