• Resolved cyclissmo

    (@cyclissmo)


    I’m getting this error when I click on the Test S3 Upload and Cloudfront Distribution button:

    Error: Distribution for origin "bucket-name.s3.amazonaws.com" not found.

    I have only one distribution, and this is my policy:

    “Effect”: “Allow”,
    “Action”: “cloudfront:ListDistributions”,
    “Resource”: “*”

    What I think is causing it is that the Distribution Origin should be “bucket-name.s3.us-east-1.amazonaws.com”, but W3 Total Cache is looking for “bucket-name.s3.amazonaws.com”, omitting the region.

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @cyclissmo

    Thank you for reaching out and I am happy to assist you with this.
    Can you please try and create the distribution in W3 Total Cache settings in Performance>CDN?
    Please let me know if this helps!
    Thanks!

    Thread Starter cyclissmo

    (@cyclissmo)

    The only option I see available is a button Create as new bucket with distribution and of course when I click that I get Error: Bucket already exists: bucket-name

    I’d rather not have to create a new bucket, is there another way to solve the issue?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @cyclissmo

    Thank you for your patience.
    You created the bucket using the region bucket-name.s3.us-east-1.amazonaws.com when W3TC uses the shorter bucket-name.s3.amazonaws.com for the default region us-east-1. AWS appears to not honor the alias.

    What you can do is try and recreate the bucket using the short hostname.

    Thanks!

    Thread Starter cyclissmo

    (@cyclissmo)

    Thank you, Marko.

    Actually what solved this for me was simply changing the origin in the Cloudfront Distribution setup. I didn’t have to modify the S3 bucket.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @cyclissmo

    Thank you for the information. Yes, that is another way to do this.
    Glad to know the problem is resolved.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Distribution for Origin not found’ is closed to new replies.