aws-cloudformation-cloudfront

Generate CloudFormation templates for AWS CloudFront distributions with multi-origin and WAF support.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/MassimilianoPili/claude-code-config --skill aws-cloudformation-cloudfront
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-cloudformation-cloudfront
Source: https://github.com/MassimilianoPili/claude-code-config/tree/main/skills/aws-cloudformation-cloudfront
Command: npx skills add https://github.com/MassimilianoPili/claude-code-config --skill aws-cloudformation-cloudfront

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies and standardizes the creation of complex AWS CloudFront Content Delivery Network (CDN) distributions using AWS CloudFormation, ensuring best practices and efficient deployment.

Core Features & Use Cases

  • Production-Ready Templates: Provides pre-built CloudFormation templates for various CloudFront configurations.
  • Multi-Origin Support: Easily configure distributions with multiple origins like S3, ALB, Lambda@Edge, and VPC.
  • Advanced Features: Includes support for Cache Policies, Origin Request Policies, Response Headers Policies (Security Headers), CloudFront Functions, WAF integration, and real-time logging.
  • Use Case: Deploy a secure, high-performance CDN for a web application with static assets served from S3 and dynamic content from an Application Load Balancer, complete with WAF protection and custom caching rules.

Quick Start

Use the aws-cloudformation-cloudfront skill to generate a CloudFormation template for a CloudFront distribution with an S3 origin and ACM certificate.

Frequently Asked Questions about aws-cloudformation-cloudfront

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a CloudFront distribution with multiple origins using CloudFormation?

You can deploy a multi-origin CloudFront distribution by generating a CloudFormation template that configures origins like S3, ALB, and Lambda@Edge. This approach standardizes complex CDN setups while incorporating caching strategies and security headers.

Can I integrate WAF and CloudFront Functions into my CloudFormation CDN deployment?

Yes, CloudFormation CDN deployments support WAF integration and CloudFront Functions. This allows you to enforce web security rules and execute lightweight edge compute logic directly within your infrastructure as code templates.

What is the best way to configure secure caching policies for an AWS CloudFront CDN?

The best way to configure secure caching is using pre-built CloudFormation templates that define Cache Policies, Origin Request Policies, and Response Headers Policies. This ensures your web application CDN enforces optimal performance and security.

Does this CloudFormation approach support serving static assets from S3 and dynamic content from ALB?

Yes, this approach supports multi-origin setups where static assets are served from S3 and dynamic content from an Application Load Balancer. It facilitates creating scalable CDN infrastructure tailored for hybrid web application architectures.

When do I need real-time logging and custom cache rules for my CloudFront distribution?

You need real-time logging and custom cache rules when deploying high-performance, secure CDNs for complex web applications. Configuring these via CloudFormation ensures your distribution maintains strict observability and tailored content delivery behaviors.