cdn-setup

Configure AWS CloudFront distributions for S3 origins with Nginx cache headers and Cloudflare zones.

46|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill cdn-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cdn-setup
Source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/infrastructure/networking/cdn-setup
Command: npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill cdn-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you configure Content Delivery Networks (CDNs) to efficiently deliver your content to users worldwide, reducing latency and improving load times.

Core Features & Use Cases

  • AWS CloudFront Configuration: Set up CloudFront distributions for S3 origins.
  • Cloudflare Integration: Basic API example for zone creation.
  • Cache Header Management: Configure Nginx for optimal caching of static assets.
  • Best Practices: Guidance on cache invalidation, warming, and monitoring.
  • Use Case: You've just deployed a new static website and want to ensure fast loading times for your global audience. Use this skill to set up CloudFront and configure appropriate cache headers.

Quick Start

Configure AWS CloudFront for your S3 bucket by running the provided aws cli command.

Frequently Asked Questions about cdn-setup

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

FAQPage Schema
How do I set up an AWS CloudFront distribution for an S3 bucket?

To set up AWS CloudFront for an S3 bucket, you can run the provided AWS CLI command to configure the distribution. This optimizes global content delivery by caching your static assets closer to users.

Can I use Cloudflare API integration to create a new zone for content delivery?

Yes, you can use Cloudflare API integration for zone creation. The skill provides a basic API example to programmatically configure Cloudflare and reduce latency for your global audience.

How do I configure Nginx cache headers for static assets?

Configuring Nginx cache headers for static assets involves defining expiration rules in your server configuration. This ensures optimal caching at the edge, improving website performance and load times.

What are the best practices for CDN cache invalidation and warming?

Best practices for CDN cache invalidation and warming include proactively fetching updated content and monitoring cache hit ratios. This ensures users receive fresh assets without experiencing latency.

When do I need a CDN for my newly deployed static website?

You need a CDN for a newly deployed static website when you want to ensure fast loading times for a global audience. Configuring a CDN reduces latency by delivering content from edge locations closer to users.