Skip to main content
skill CX Codex

cloudfront — Claude Code skill for AWS content delivery

A skill for Amazon CloudFront: decide when a CDN fits, manage certificates, lock down origins and restrict who sees your content.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aws/agent-toolkit-for-aws --skill cloudfront -a claude-code
Open on GitHub

What cloudfront does

The skill is a router. Each task maps to a file under references/, and the agent reads the matching file in full before acting. Six areas are covered: choosing CloudFront and its place in the architecture, custom-domain certificates, multi-tenant distributions, origin protection, content access control and logs.

Commands run through the AWS MCP server when it is connected, otherwise through the AWS CLI. CloudFront is a global service, so its API calls and the ACM certificates it uses are made in us-east-1 no matter where your application runs. Worth remembering when the app region differs.

The skill does not cover the DNS side of a custom domain or failover between distributions via Route 53 — that belongs to the separate route53-cloudfront skill. This one handles the CloudFront-side configuration only.

What it helps with

  • decide whether CloudFront belongs in front of your content
  • issue an ACM certificate for a custom domain
  • lock an origin so only CloudFront can reach it
  • restrict viewing by location or signed URLs
  • read standard and real-time traffic logs

Example prompts for the agent

  • Set up CloudFront in front of my S3 bucket and lock the origin with OAC
  • Help me issue an ACM certificate in us-east-1 and add an alternate domain name
  • Restrict content access with signed URLs and geographic restrictions

How to install cloudfront

1Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill cloudfront -a claude-code

2Manually: put the files in place

~/.claude/skills/cloudfront/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cloudfront/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cloudfront

How do I install cloudfront in Claude?

Run npx skills add aws/agent-toolkit-for-aws --skill cloudfront -a claude-code. The skill lands in ~/.claude/skills/cloudfront/SKILL.md.

What does the cloudfront skill do?

It walks through six CloudFront tasks: choosing the layer and creating a distribution, custom-domain certificates, multi-tenant distributions, origin protection, content access control and logs.

How is it different from route53-cloudfront?

This skill covers CloudFront-side configuration only. Pointing a domain's DNS at a distribution and failing over between distributions with Route 53 is the job of the route53-cloudfront skill.

Source text

SKILL.md · Apache-2.0
---
name: cloudfront
description: >
  Configures Amazon CloudFront content delivery across six workflows: when to use CloudFront and
  how it fits with AWS WAF, Shield, CloudFront Functions, Lambda@Edge, Route 53, and origins
  (creating a distribution, caching, and Flat Rate Pricing (FRP) versus pay-as-you-go pricing); managing
  custom-domain TLS certificates (ACM in us-east-1); configuring multi-tenant distributions;
  protecting origins with origin access control (OAC), VPC origins, and origin mutual TLS (mTLS);
  securing content with signed URLs and cookies, geographic restrictions, viewer mutual TLS, and
  edge token validation; and observing traffic with standard and real-time logs. Applicable when the
  customer wants to put CloudFront in front of content, choose pricing, lock an origin, restrict who
  can view content, or analyze logs. Not applicable for the Route 53 DNS side of a CloudFront custom
  domain or failover between distributions (see the route53-cloudfront skill), or for pure-Route 53
  DNS work (see the route53 skill).
version: 1
---

# Amazon CloudFront

## Overview

Domain expertise for configuring Amazon CloudFront content delivery: deciding when to use
CloudFront and how it fits the wider architecture, managing custom-domain certificates and
multi-tenant distributions, protecting origins, securing content, and observing traffic.

This skill is a router. Each customer task maps to a procedure file under `references/`. Read the
matching reference in full before acting, then follow its constraints and steps. The reference
files are self-contained: each carries its own decision tables, constraints, procedure, and
troubleshooting.

Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging,
observability). Fall back to the AWS CLI otherwise. CloudFront is a global service; its API calls
and the AWS Certificate Manager (ACM) certificates it uses are made in `us-east-1` regardless of
where the customer's application runs.

## Which CloudFront task do you need?

| Goal | Reference |
| --- | --- |
| Decide whether CloudFront is the right layer, see how it integrates, create a distribution, tune caching, or choose pricing | [when to use CloudFront](references/when-to-use-cloudfront.md) |
| Serve a custom domain over HTTPS, manage ACM certificates, or run many domains with a certificate per tenant | [managing certificates with CloudFront](references/managing-certificates-with-cloudfront.md) |
| Make CloudFront the only way to reach the origin (S3 OAC, VPC origins, origin mutual TLS, security groups) | [protecting your origins](references/protecting-your-origins.md) |
| Limit who can view content by identity, location, client certificate, or auth token | [securing your content](references/securing-your-content.md) |
| Get visibility into traffic with standard and real-time logs, and analyze them | [CloudFront observability](references/cloudfront-observability.md) |
| Serve multiple domains through shared configuration with per-tenant customization (SaaS, platform) | [multi-tenant distributions](references/multi-tenant-distributions.md) |

## Routing notes

- **Choosing the layer and creating a distribution vs the rest.** Whether CloudFront is the right
  entry layer, what it integrates with, creating a distribution, caching, and pricing live in the
  when-to-use reference. The other references assume a distribution exists and configure one
  aspect of it.
- **Protecting origins vs securing content.** Locking the origin so it is reachable only through
  CloudFront (OAC, VPC origins, origin mTLS) is the protecting-your-origins reference. Restricting
  which viewers can see content (signed URLs and cookies, geographic restrictions, viewer mTLS,
  edge token validation) is the securing-your-content reference. They are paired: a content control
  only holds when the origin is also locked.
- **Viewer mTLS vs origin mTLS.** Authenticating the client to CloudFront (viewer mTLS) is content
  security. Authenticating CloudFront to the origin (origin mTLS) is origin protection. Different
  controls, different references.
- **Custom domain certificate vs Route 53 DNS cutover.** Requesting and validating the ACM
  certificate and adding the alternate domain name is the managing-certificates reference here.
  Pointing the domain's DNS at the distribution, including the zone apex alias and any failover, is
  Route 53 work owned by the separate `route53-cloudfront` skill.

## Cross-service work

Pointing a custom domain's DNS at a CloudFront distribution, or failing over between distributions
with Route 53 records, is cross-service work owned by the separate `route53-cloudfront` skill. Use
this skill for the CloudFront-side configuration only.

## Additional Resources

- [Amazon CloudFront Developer Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html)
- [Security best practices for Amazon CloudFront (Amazon CloudFront Developer Guide)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/security-best-practices.html)
- [Amazon CloudFront product page](https://aws.amazon.com/cloudfront/)
- [Amazon CloudFront pricing](https://aws.amazon.com/cloudfront/pricing/)

© aws · Apache-2.0 · aws/agent-toolkit-for-aws

Similar skills

All skills for Cloud: AWS, Azure, GCP →

From the same set137

amazon-elasticache This skill routes ElastiCache work from engine selection and setup to data modeling, GenAI caching, vector search, monitoring, and migration. CX Codex +1 5,400installs aws-blocks Guides your agent through AWS Blocks: picking Building Blocks, local development, deployment. Useful when the backend lives in an aws-blocks/ directory. CX Codex +1 5,500installs querying-aws-cloudwatch Runs SQL queries via Amazon Athena on CloudWatch logs exported as Apache Iceberg tables in S3 Tables. Useful for network traffic audits and incident investigations. CX Codex +1 5,500installs amazon-aurora-mysql A skill for Amazon Aurora MySQL clusters: creating and modifying them, sizing ACUs, evaluating storage, and planning version upgrades. CX Codex +1 5,200installs processing-s3-uploads-with-step-functions Deploys an S3 upload flow that sends smaller files to Lambda and larger files to Fargate through Step Functions. CX Codex +1 5,000installs amazon-documentdb An AWS skill that runs DocumentDB work end to end: cluster setup, TLS and VPC fixes, MongoDB migrations, slow-query diagnosis and a 41-check review. CX Codex +1 5,000installs deploying-custom-domain-rest-api Deploys an AWS Regional REST API with a custom domain, Lambda backend function, and request authorizer using the AWS CLI. CX Codex +1 5,000installs amazon-dynamodb This skill walks an agent through designing, reviewing and debugging a DynamoDB data layer: access patterns, keys and GSIs, plus a monthly cost estimate. CX Codex +1 5,100installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor