Connect to AI
CDN & Edge Computing AWS Signature Version 4

AWS CloudFront REST API

Global CDN and edge computing for fast content delivery

AWS CloudFront is Amazon's globally distributed content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to customers with low latency and high transfer speeds. Developers use CloudFront to accelerate website performance, stream media content, and deploy serverless applications at the edge with Lambda@Edge. The API provides comprehensive control over distribution configurations, cache behaviors, invalidations, and real-time analytics.

Base URL https://cloudfront.amazonaws.com/2020-05-31

API Endpoints

MethodEndpointDescription
POST/distributionCreate a new CloudFront distribution for content delivery
GET/distribution/{DistributionId}Get configuration details for a specific distribution
GET/distributionList all CloudFront distributions in your account
PUT/distribution/{DistributionId}/configUpdate distribution configuration including cache behaviors and origins
DELETE/distribution/{DistributionId}Delete a disabled CloudFront distribution
POST/distribution/{DistributionId}/invalidationCreate cache invalidation request to purge specific objects
GET/distribution/{DistributionId}/invalidation/{InvalidationId}Get status and details of a cache invalidation request
GET/distribution/{DistributionId}/invalidationList all invalidation requests for a distribution
POST/origin-access-identity/cloudfrontCreate origin access identity for private S3 content delivery
GET/origin-access-identity/cloudfront/{Id}Get configuration for a specific origin access identity
POST/functionCreate a CloudFront Function for edge customization
PUT/function/{FunctionName}/configUpdate CloudFront Function code and configuration
GET/distribution/{DistributionId}/monitoring-subscriptionGet real-time metrics and monitoring configuration
POST/streaming-distributionCreate RTMP streaming distribution for media content
GET/distribution/{DistributionId}/tagsList all tags associated with a CloudFront distribution

Code Examples

curl -X POST https://cloudfront.amazonaws.com/2020-05-31/distribution \
  -H 'Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20230615/us-east-1/cloudfront/aws4_request, SignedHeaders=host;x-amz-date, Signature=...' \
  -H 'Content-Type: application/xml' \
  -d '<?xml version="1.0" encoding="UTF-8"?>
<DistributionConfig>
  <CallerReference>unique-ref-2023</CallerReference>
  <Origins>
    <Quantity>1</Quantity>
    <Items>
      <Origin>
        <Id>S3-my-bucket</Id>
        <DomainName>my-bucket.s3.amazonaws.com</DomainName>
        <S3OriginConfig>
          <OriginAccessIdentity></OriginAccessIdentity>
        </S3OriginConfig>
      </Origin>
    </Items>
  </Origins>
  <DefaultCacheBehavior>
    <TargetOriginId>S3-my-bucket</TargetOriginId>
    <ViewerProtocolPolicy>redirect-to-https</ViewerProtocolPolicy>
    <MinTTL>0</MinTTL>
  </DefaultCacheBehavior>
  <Enabled>true</Enabled>
</DistributionConfig>'

Use AWS CloudFront from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for AWS CloudFront. Paste your AWS CloudFront API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls AWS CloudFront directly with your credentials — no local install, works on mobile.

create_distribution Create and configure a new CloudFront distribution with custom cache behaviors and origins
invalidate_cache Purge cached content from edge locations by creating invalidation requests for specific paths
get_distribution_metrics Retrieve real-time performance metrics including requests, bytes transferred, and error rates
update_cache_behavior Modify cache TTL settings, compression, and viewer protocol policies for distributions
manage_origin_access Create and configure origin access identities for secure S3 bucket access

Connect in 60 seconds

Paste your AWS CloudFront key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect AWS CloudFront to your AI →

Related APIs