Skip to content

CloudFront “Access Denied” When Saving Distribution Settings Even as Root User

0

Hello everyone,

I’m experiencing an issue with Amazon CloudFront where I consistently receive an “Access Denied” error whenever I try to save changes to a CloudFront distribution — even when no changes are made.

Here is my current setup and what I have already verified:

Environment details:

  • CloudFront distribution is Active / Deployed
  • Logged in using the root account
  • No SCP restrictions applied (account not under AWS Organizations)
  • IAM permissions are not restricted

Domain & DNS (Cloudflare):

DNS provider: Cloudflare

Proxy disabled (DNS only)

DNS records:

CNAME centralconnect.id d1w0xbq0idl2pf.cloudfront.net CNAME www.centralconnect.id d1w0xbq0idl2pf.cloudfront.net

No A record pointing to 0.0.0.0

CloudFront configuration:

Alternate Domain Names (CNAMEs):

centralconnect.id

www.centralconnect.id

Origin: Amazon S3 (static build)

Distribution works when accessed directly via:

https://d1w0xbq0idl2pf.cloudfront.net

SSL / ACM:

Certificate status: Issued

Region: us-east-1 (N. Virginia)

SAN includes:

centralconnect.id

www.centralconnect.id

SSL already attached and active

Issue:

Any attempt to Edit → Save changes on the distribution results in:

Access Denied

This happens even if no configuration values are modified

Creating a new CloudFront distribution also fails with the same “Access Denied” error when saving

What I’m trying to understand:

Are there known scenarios where a CloudFront distribution (or entire account) becomes read-only / locked even for the root user?

Could this be related to an account-level restriction, billing verification, or CloudFront backend issue?

Has anyone encountered a similar issue where CloudFront write operations are denied while read access still works?

Any insight or similar experiences would be greatly appreciated.

Thank you.

2 Answers
0

Based on the information provided, there are several potential causes for the "Access Denied" error you're experiencing when trying to save CloudFront distribution settings, even as the root user.

This could be related to IAM permissions issues. Even though you're using the root account, it's worth verifying that there are no policy restrictions affecting CloudFront operations. The root user should have full access by default, but there might be unexpected credential issues.

If you've activated AWS WAF for your distribution, it could be blocking certain requests. You should review the AWS WAF logs to determine if any firewall rules are blocking your save attempts.

Another possibility is that there might be an issue with the Origin Access Identity (OAI) permissions if your distribution is using an S3 origin with restricted access. Ensure that the bucket policy grants the required permissions to the OAI.

Since you mentioned that creating a new CloudFront distribution also fails with the same error, this suggests a broader account-level issue rather than a problem with a specific distribution.

I would recommend:

  1. Checking for any recent changes to IAM policies or security settings
  2. Verifying that your AWS account is in good standing (no billing or compliance issues)
  3. Contacting AWS Support directly as they can investigate account-specific issues that might not be apparent from the console
  4. Trying to perform the same operations using the AWS CLI or SDK to see if you get more detailed error information
    Sources
    Troubleshoot CloudFront distribution access issues with CNAMEs and custom origins | AWS re:Post

answered 10 months ago

EXPERT

reviewed 10 months ago

0

Can you check in CloudTrail which operation is being denied. It will give you a good idea on what is getting blocked. Also, check S3 bucket policy if there is something specific blocking it.

EXPERT

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.