• I am getting

    Error: Unable to create distribution for origin domainname.com (S3::createDistribution(‘domainname.com’, ‘custom’, 1, ”, ”): [7] Failed to connect to cloudfront.amazonaws.com port 80: Connection refused).

    When I create a pull Cloudfron distro.

    Seems that I can’t connect to cloudfront. the server is inside a VPC but outbound traffic is allowed on security group, I have generated a policy for this user with permissions to create distributions and access an S3 bucket, and the IAM user is activated, keys are correct.

    I have tested the policy with the policy simulator and it works.

    What else can be ? I am on a fresh WP4 installation with the latest version of the plugin, can someone shed some light over here ?

    Thanks

    https://wordpress.org/plugins/w3-total-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chromafunk

    (@chromafunk)

    With the policy I am using, I can connect with this user to a S3 bucket but not create a CF distro. It’s weird cause as I said I tested a generated policy with the policy simulator and it works.

    Thanks

    Thread Starter chromafunk

    (@chromafunk)

    Solved. You can’t create distros over port 80. It was trying to create the distro over port 80 instead of 443 because php-ssl was disabled, so connection was refused.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error while trying to create CDN in cloudfront’ is closed to new replies.