Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AccessDeniedException while creating AWS Web Cloudfront Distribution

I'm new to AWS and trying to create a Web CloudFront distribution.

I chose:

  • Origin media: wp.s3.s3.amazonaws.com
  • Restrict Bucket Access: Yes
  • Origin Access Identity: Create a new identity
  • Grant Read Permissions on Bucket: Yes, Update Bucket Policy

I get the following error when I click on Create Distribution:

com.amazonaws.services.cloudfront.model.AccessDeniedException: Your account must be verified before you can add new CloudFront resources. 
To verify your account, please contact AWS Support (https://console.aws.amazon.com/support/home#/) and include this error message. (Service: AmazonCloudFront; Status Code: 403; Error Code: AccessDenied; Request ID: 0ade44b6-42ea-11e9-bd99-45671299fde3)
like image 239
Sai Avatar asked Mar 10 '19 04:03

Sai


People also ask

Which of the following can be specified as an origin when creating a CloudFront distribution?

When you create a distribution, you specify the origin where CloudFront sends requests for the files. You can use several different kinds of origins with CloudFront. For example, you can use an Amazon S3 bucket, a MediaStore container, a MediaPackage channel, an Application Load Balancer, or an AWS Lambda function URL.

How do you fix 403 error the request could not be satisfied CloudFront?

To resolve the Request Blocked error when the default action is Allow, review the requests to be sure that they don't match the conditions for any AWS WAF rules with Action set to Block. If valid requests match the conditions for a rule that blocks requests, then update the rule to allow the requests.


2 Answers

A 2014 post says that CloudFront is available for the free account.

I tried to create a distribution and got the same message reported in this thread.

I created an issue as "Michael - sqlbot" suggested in the comments above and I receive a reply informing that the service would be enabled for me.

Why do They not create a submission for the distribution creation that make it clear that need a activation from the support team instead of an error message? :S

So it looks like every new free account must follow this steps:

  1. Try to create a distribution
  2. It will return a error message
  3. Create an issue at support center
  4. Wait for the contact to get the service available
like image 144
Cláudio Avatar answered Sep 26 '22 02:09

Cláudio


here's how to solve it:

1) Navigate to: Support / New case / Service limit increase

2) Limit type: CloudFront Distributions

3) In Requests select: Limit: Web Distributions per Account New limit value: MY CASE:

In my case, I had 2 distributions, wanted to create 3rd, but coudn't. So I have put as a number 10.

It takes an hour or more to resolve. Be patient

like image 32
Nithin Avatar answered Sep 22 '22 02:09

Nithin