AWS Media Services
AWSOfficialPublished by AWS
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured framework for managing end-to-end video streaming pipelines using AWS Media Services. It acts as an orchestrator that enforces mandatory rule-loading sequences to ensure configurations adhere to service constraints, security best practices, and performance requirements. It covers the full lifecycle of live, linear, and VOD workflows, including ingest, encoding, packaging, ad insertion, and CDN delivery.
What it does
- Provides a mandatory dependency-based workflow for building and modifying streaming pipelines.
- Enforces the loading of specific service rules to prevent configuration errors.
- Offers a comprehensive troubleshooting guide for cross-service signal chain issues.
- Includes a discovery checklist to gather requirements before resource deployment.
- Defines strict startup and shutdown sequences for live streaming events.
- Provides best practices for cost optimization and resilience in media architectures.
When to use it
- When building or modifying live, linear, or VOD video streaming workflows.
- When troubleshooting errors, latency, or sync issues across AWS media services.
- When auditing existing configurations for compliance or performance optimization.
- When planning a new media project and needing to understand service dependencies.
- When configuring complex features like SCTE-35 ad insertion, DRM, or epoch locking.
Advantages
- Prevents common configuration errors by enforcing dependency-aware resource creation.
- Ensures compliance with service-specific constraints and security policies.
- Reduces troubleshooting time by providing structured, service-specific diagnostic paths.
- Promotes architectural best practices for resilience and cost efficiency.
- Standardizes the approach to complex media tasks like ad insertion and CDN integration.
Usage examples
- “I need to set up a live event workflow using MediaConnect, MediaLive, and MediaPackage. What is the correct order?”
- The agent will load the core rules, the live event workflow file, and the relevant service rules, then guide you through the dependency-ordered creation process starting with VPC/IAM, followed by MediaPackage, MediaConnect, and finally MediaLive.
- “My MediaLive channel is failing to start and showing pipeline errors. How do I fix it?”
- The agent will load the core rules and the MediaLive troubleshooting file, then prompt you to check specific pipeline failover settings and encoder configurations based on the loaded rules.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/aws/aws-media-services/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip aws-media-services.zip -d .agents/skills
Documentation by AWS
AWS Media Services
Use this skill when the user is doing ANY of the following with AWS media services:
Building or modifying a video workflow (ingest, encoding, packaging, ad insertion, CDN delivery)
Reviewing, evaluating, or auditing an existing or proposed configuration for best practices, compliance, or correctness
Troubleshooting errors, alerts, or unexpected behavior
Asking questions about service constraints, compatibility rules, encoder settings, IAM policies, security groups, DRM, SCTE-35, caching, scaling, or any other AWS media topic
Planning a new workflow and needs to understand requirements, dependencies, or the discovery checklist
Optimizing cost, resilience, or performance of an existing workflow
If the user mentions ANY AWS media service by name (MediaConnect, MediaLive, MediaConvert, MediaPackage, MediaTailor) or related concepts (HLS, DASH, CMAF, ABR ladder, SCTE-35, epoch locking, origin shield, CDI, SRT, RTMP, transcode, live streaming, VOD pipeline, ad insertion, SSAI), load this skill.
This file is the orchestrator. It tells you which reference files to load based on the user's task. Do not load all files at once. Load on demand per the routing table below.
MANDATORY FIRST STEP — Read Before Doing Anything Else
STOP. Before you make ANY API call, pull ANY resource configuration, write ANY code, or produce ANY recommendation, you MUST load the required rule files into context. No exceptions. This applies to every task type: building, modifying, evaluating, troubleshooting, or answering questions.
The rule content is split across:
references/service-rules-core.md— cross-service compatibility constraints, common agent mistakes, and security considerations. ALWAYS loaded.references/service-rules-encoding.md— shared encoder settings (QVBR, GOP, profiles, quality tuning, deinterlacing). Loaded for any encoding task.references/service-rules-mediaconnect.mdreferences/service-rules-medialive.mdreferences/service-rules-mediaconvert.mdreferences/service-rules-mediapackage.mdreferences/service-rules-mediatailor.mdreferences/service-rules-cloudfront.md
Per-service rule files are loaded conditionally based on which services the query involves. Without the relevant rules loaded, you will produce recommendations based on general knowledge that may contradict the documented rules, flag correct configurations as problems, or miss critical constraints entirely.
Sequence (every time):
Read
references/service-rules-core.md— confirm it is in context before proceeding. ALWAYS required.Determine the task type and consult the Task Routing tables below to identify both the workflow/troubleshooting file AND the per-service rules to co-load.
For ad-hoc questions that don't match a workflow or troubleshooting category: if the user names specific service(s), load those service rule files. If the question is symptom-based or you cannot determine which services are involved, load ALL per-service rule files.
Only then begin resource discovery, API calls, or implementation.
If you find yourself about to call aws medialive describe-channel or similar
and you have NOT yet read the core rules file plus the relevant per-service
rules, stop and go back to step 1.
Task Routing
Building or modifying a workflow
Determine the workflow type. Load the matching workflow file AND the per-service rules listed in the right column (the core rules file is already loaded from the mandatory first step above).
| Workflow type | Workflow file | Service rules to co-load |
|---|---|---|
| Live event (ingest → encode → package → deliver) | references/workflow-live-event.md | mediaconnect + medialive + encoding + mediapackage + cloudfront (+ mediatailor if ads) |
| Linear channel (24/7 with schedule, ad insertion) | references/workflow-linear-channel.md | medialive + encoding + mediapackage + mediatailor + cloudfront |
| VOD pipeline (file-based transcode → package → deliver) | references/workflow-vod-pipeline.md | mediaconvert + encoding + mediapackage + cloudfront |
| Live-to-VOD (live + archive/harvest → VOD transcode) | references/workflow-live-event.md + references/workflow-vod-pipeline.md | union of live event + VOD pipeline |
| Ad insertion (SSAI/CSAI, MediaTailor scaling) | references/workflow-ad-insertion.md | medialive + encoding + mediapackage + mediatailor + cloudfront |
| Contribution transport (MediaConnect, SRT, DX, encoders) | references/workflow-contribution-distribution.md | mediaconnect + medialive + encoding |
| Router-based switching (master control, dynamic routing, playout) | references/workflow-contribution-distribution.md | mediaconnect + medialive + encoding |
| Resilience (dual-AZ, dual-region, epoch locking, multi-CDN, ops readiness) | references/workflow-resilience-patterns.md | ALL (cross-cutting) |
| Cost optimization (reserved vs on-demand, channel classes, right-sizing) | references/workflow-cost-optimization.md | ALL (cross-cutting) |
| Subtitles and accessibility (captions, multi-language, auto-captioning) | references/workflow-subtitles-accessibility.md | medialive + mediaconvert + encoding |
Troubleshooting
Load the relevant troubleshooting file(s) for the problem area AND the per-service rules listed in the right column. The core rules file is already loaded from the mandatory first step above. Load only the files needed.
| Problem area | Troubleshooting file | Service rules to co-load |
|---|---|---|
| MediaConnect flow issues, source connectivity, VPC interfaces, MediaConnect Router | references/troubleshooting-mediaconnect.md | mediaconnect |
| MediaLive channel errors, alerts, encoding, pipeline failover | references/troubleshooting-medialive.md | medialive + encoding |
| MediaPackage ingest failures, manifest issues, access denied, v1→v2 migration | references/troubleshooting-mediapackage.md | mediapackage |
| MediaConvert job failures, codec errors, output issues, automation | references/troubleshooting-mediaconvert.md | mediaconvert + encoding |
| MediaTailor ad insertion, ADS issues, SSAI scaling, session management | references/troubleshooting-mediatailor.md | mediatailor + medialive + mediapackage + cloudfront |
| CloudFront origin errors, cache behavior, multi-CDN, Embedded POPs (ePOP) | references/troubleshooting-cloudfront.md | cloudfront + mediapackage |
| Cross-service signal chain (no video, latency, sync, AZ alignment, IAM, failover) | references/troubleshooting-pipeline.md | ALL |
Quick reference
For a quick answer about a specific service's constraints, valid parameter values, or compatibility rules:
references/service-rules-core.mdis already loaded (mandatory first step).If the user names specific service(s) in the query, load those per-service rule files (e.g.
references/service-rules-medialive.md).If the question crosses service boundaries (e.g., MediaPackage→MediaTailor compatibility), the cross-service rules are already in
service-rules-core.md.If you can't determine which services are involved, load ALL per-service rule files.
This includes the following topics:
MediaTailor scaling patterns (multi-region, CDN origin shield, prefetch)
MediaConnect Router (paired resilient zonal endpoints) and downstream NDI converter caveats
Epoch locking and cross-region failover
Contribution transport (SRT tuning, Direct Connect sizing, RTP+FEC)
Multi-CDN architecture patterns
CloudFront advanced patterns (Embedded POPs / ePOP, CF Functions, segment sharding)
Operational readiness for live events (capacity planning, KPI baselines)
DRM production patterns and MediaPackage v1→v2 migration
Audio, HDR, and codec configuration details
Workflow Discovery Checklist
Before creating ANY resources for a new workflow, gather requirements from the user in a fixed order (mode → cost/scale → approach → source → network → encoding → ad insertion → packaging → IAM → VOD-specific). Do not proceed until all required items are answered; later questions depend on earlier answers.
Load references/workflow-discovery-checklist.md for the full ordered question
set whenever building or modifying a workflow.
Plan Validation (before presenting to user)
Before presenting a proposed configuration to the user, cross-check against the loaded service rules:
Codec/container compatibility (e.g., HEVC requires fMP4, not TS)
GOP/segment duration alignment across all ABR rungs
Dependency ordering (downstream before upstream)
IAM trust policy includes all required service principals + sts:TagSession
IAM permissions scoped to specific resource ARNs (no Resource: "*")
Security posture (CIDR scoped, OAC configured, no Principal: *)
All prerequisite resources included (IAM roles, VPC, MediaPackage channel MUST be in the plan before resources that depend on them)
Do NOT make API calls during this step. This is a rules-based review of the proposed plan against constraints already in context.
Agents MUST NOT skip dependency steps to save time. All prerequisites (IAM, VPC, MediaPackage channel, etc.) MUST be created before resources that reference them. Skipping steps and fixing errors reactively leads to circular troubleshooting loops. Execute the plan in dependency order.
Resource Creation Order
Respect dependency order — a resource must exist before anything that references it (live chain, VOD chain, live-to-VOD addition, and the common flow patterns table).
Load references/resource-creation-order.md for the full dependency chains and
flow-pattern table when creating resources.
Startup and Shutdown (Live Only)
Start upstream first and poll each resource to its ready state before proceeding
(STARTING ≠ running); shut down in reverse (STOPPING ≠ stopped). Poll on a
tight ~5s cadence.
Load references/startup-shutdown.md for the ordered start/stop tables and the
polling pattern (including MediaConnect Router lifecycle) when operating a live
workflow.
Tooling
When available, the AWS MCP Server is recommended for sandboxed execution and audit logging:
AWS MCP Server (
aws-mcp-server): AWS API access, Agent SOPs for guided multi-step workflows, and documentation search viasearch_documentationandread_documentation.AWS IaC MCP Server (
aws-iac-mcp-server): CloudFormation template validation, CDK documentation search, CDK code samples, and IaC best practices.
Large response warning: MediaLive describe-channel and MediaPackage list-*
calls return very large JSON. Always use --query (JMESPath) to extract only the
fields you need.
# Good — extract only what you need
aws medialive describe-channel --channel-id 12345 --query "{State:State,Name:Name,Id:Id}"
aws medialive list-channels --query "Channels[].{Name:Name,Id:Id,State:State}"
aws mediapackagev2 list-origin-endpoints --channel-group-name X --channel-name Y \
--query "Items[].{Name:OriginEndpointName,Url:HlsManifests[0].Url}"Files
- ATTRIBUTION.mdAdded by AutoGineer930 B
- LICENSELicence file added by AutoGineer9.9 KiB
- NOTICELicence file added by AutoGineer67 B
- SKILL.md11.6 KiB
- references/resource-creation-order.md2.3 KiB
- references/service-rules-cloudfront.md9.6 KiB
- references/service-rules-core.md16.6 KiB
- references/service-rules-encoding.md6.3 KiB
- references/service-rules-mediaconnect.md11.3 KiB
- references/service-rules-mediaconvert.md1.3 KiB
- references/service-rules-medialive.md9.4 KiB
- references/service-rules-mediapackage.md6.6 KiB
- references/service-rules-mediatailor.md20.6 KiB
- references/startup-shutdown.md2.2 KiB
- references/troubleshooting-cloudfront.md4.9 KiB
- references/troubleshooting-mediaconnect.md4.7 KiB
- references/troubleshooting-mediaconvert.md4.3 KiB
- references/troubleshooting-medialive.md5.7 KiB
- references/troubleshooting-mediapackage.md5.7 KiB
- references/troubleshooting-mediatailor.md22.2 KiB
- references/troubleshooting-pipeline.md6.2 KiB
- references/workflow-ad-insertion.md7.9 KiB
- references/workflow-contribution-distribution.md12.7 KiB
- references/workflow-cost-optimization.md13.8 KiB
- references/workflow-discovery-checklist.md4.4 KiB
- references/workflow-linear-channel.md4.7 KiB
- references/workflow-live-event.md20.1 KiB
- references/workflow-resilience-patterns.md5.6 KiB
- references/workflow-subtitles-accessibility.md3.4 KiB
- references/workflow-vod-pipeline.md5.4 KiB
references/workflow-cost-optimization.md
Cost Optimization
Model cost implications for both existing and proposed resources. Present each decision as a spectrum — not a binary choice.
Existing State — Query First
| Service | Query | Flag |
|---|---|---|
| MediaConnect | list-flows → ACTIVE with 0 outputs | Idle billing |
| MediaLive | list-channels → STANDARD in non-prod | Over-provisioned |
| MediaLive | Channel RUNNING but no viewers downstream | Idle encoding cost |
| MediaConvert | Recent job volume vs queue type | Reserved queue candidate |
| MediaPackage v2 | Origin endpoints with no egress (EgressBytes = 0) | Unused packaging |
| MediaPackage v2 | Long startover/DVR windows on low-viewership channels | Excess origin storage |
| MediaTailor | Playback configs with zero active sessions | Unused SSAI capacity |
| CloudFront | Cache hit ratio < 80% on segment behaviors | Excess origin pulls (cost + RPS risk) |
| CloudFront | Origin Shield disabled with multiple edge locations | Redundant origin requests |
| S3 | Archive output groups writing but never accessed | Unused recordings — lifecycle policy needed |
Proposed State — Decision Spectrums
For each decision, present: the variable, how cost scales, what drives the right answer, and a concrete recommendation for the user's context.
Encoding and source transport
| Decision | Cost driver | Scaling | Right-size by asking |
|---|---|---|---|
| ABR renditions | Each rung = encode + packaging + storage + CDN egress per viewer on that rung | Multiplied across entire chain | What devices/bandwidths does the audience use? Remove rungs with <5% viewership. Sports needs more rungs than talking-head. |
| Bitrate targets | Higher bitrate = more storage + CDN egress (largest cost at scale) | Linear | Use QVBR — target quality level, not fixed bitrate. |
| Channel uptime | Billed per-second while RUNNING/ACTIVE | Linear with time | 24/7 linear or event-based? Event = stop between uses. |
| Idle channel cost | MediaLive charges for attached inputs even when channel is IDLE | Continuous while input attached | Detach or delete inputs on channels that won't run for days+. |
| Redundancy | STANDARD = 2x SINGLE_PIPELINE | Step (1x or 2x) | Cost of 30s downtime during failover? Acceptable → single. |
| MediaLive reserved pricing | Input + output reservations (12-month commit; check current reserved-vs-on-demand savings on the MediaLive pricing page) | Threshold: channel runs >16 hrs/day | Is this channel 24/7 or near-24/7? → Reserved. Event-only? → On-demand. |
| MediaLive add-on features | Advanced Audio adds per-channel surcharge | Per-channel flat fee | Do you actually need Advanced Audio (Dolby, audio normalization)? If not, disable. |
| MediaConvert tier | Professional tier costs more than Basic per normalized minute (confirm the current multiplier on the MediaConvert pricing page) | Step (Basic vs Professional) | Do you need broadcast features (HEVC, HDR, Dolby)? If just H.264 web delivery → Basic tier. |
| MediaConvert accelerated transcoding | 2-4x cost per job vs standard | Multiplier on job cost | Is turnaround time critical? Long-form content benefits. Short clips don't need it. |
| MediaConvert volume discounts | Tiered pricing — more normalized minutes/month = lower per-minute rate | Staircase down with volume | Consolidate jobs in one account/region to hit higher tiers. Use Organizations for aggregated billing. |
| MediaConvert reserved slots | Fixed monthly rate per RTS (check current reserved-vs-on-demand savings on the MediaConvert pricing page) | Threshold: steady daily volume | Consistent daily volume? → Reserved. Bursty/unpredictable? → On-demand with tiered discounts. |
| HEVC vs H.264 | HEVC: higher encode cost, materially lower storage+CDN (more bitrate-efficient than H.264 — quantify against current pricing) | Trade-off crosses based on egress volume | % audience supporting HEVC? Monthly egress? |
| Bandwidth Reduction Filter | Reduces output bitrate 10-20% | Multiplicative savings on storage+CDN | Enable unless contribution feed where every bit matters. |
| MediaConnect flow size | Standard (80 Mbps) vs Large (150) vs XL (400) | Step pricing per tier | What's the actual source bitrate? Don't over-provision. |
| MediaConnect Router vs TS flow | Router charges per-input-hour + per-output-hour by bitrate tier. TS flow charges per-flow-hour + per-GB transfer. | Different models | Few outputs, high bitrate → Router may cost more. Many outputs, low bitrate → Router may be cheaper. Compare. |
| MediaConnect reserved outbound | Commit to monthly outbound bandwidth for discount | Threshold: sustained egress | Steady outbound to internet/other regions? → Reserve. Bursty? → On-demand. |
| MediaConnect output count | Each output on a flow adds cost | Linear per output | Can destinations share a single output (multicast/entitlement)? Minimize outputs where possible. |
| LookAheadRateControl: HIGH | Better quality at same bitrate → can target lower MaxBitrate | Indirect — reduces downstream egress | Enable HIGH for distribution. Allows lowering bitrate ceiling without visible quality loss. |
| Input switching (channel reuse) | One channel with schedule actions vs multiple channels | Eliminates N-1 channel costs | Multi-segment events (pre-show/main/post)? → Use input switching, not separate channels. |
| Shared encode outputs | Same rendition reused across multiple output groups | Avoids duplicate encoding | Same ABR rung going to both archive and packaging? → Share the encode. |
Packaging and origin (MediaPackage v2)
| Decision | Cost driver | Scaling | Right-size by asking |
|---|---|---|---|
| Segment duration | Shorter = more manifest requests (origin + CDN) but lower latency | Inverse with segment length | Latency requirement? 6s default, 2s for low-latency, 1s only for LL-HLS. |
| DVR/startover window | Longer window = more origin storage and manifest size | Linear with window duration | How far back do viewers actually rewind? Match to actual usage, not "just in case." |
| Number of origin endpoints | Each endpoint = separate packaging pass and egress metering | Linear per endpoint | One endpoint serves both HLS and DASH — don't create duplicates. |
| Ingest redundancy | Dual-ingest (STANDARD channel) doubles ingest volume | 2x ingest cost | Production = dual. Dev/test = single pipeline saves ingest cost. |
| Egress via CDN vs direct | Content served from CDN cache does NOT incur MediaPackage egress charge | Eliminates origin egress at high cache hit | Always use CloudFront (or equivalent) — direct viewer access costs origin egress per-GB on every request. |
| Volume commitment | Discounted pricing at 10+ TB/month annual commitment | Step discount | Sustained high-viewership channels? → Commit for discount. |
Ad insertion (MediaTailor)
| Decision | Cost driver | Scaling | Right-size by asking |
|---|---|---|---|
| SSAI vs CSAI | SSAI: per-ad-impression cost. CSAI: zero MediaTailor cost but client complexity | Per impression | Ad volume? If <1000 impressions/day, SSAI cost is negligible. At millions/day, it's material. |
| Ad transcoding overflow | First 10 transcodes per 1,000 insertions are free. Beyond that, billed at MediaConvert rates. | Step — free tier then per-transcode | How many unique ad creatives? High creative diversity = more transcodes. Pre-condition creatives to avoid. |
| Ad delivery (segment egress) | Delivering ad segments and manifests over internet/CDN is billed per-GB | Linear with ad volume × bitrate | Use CDN caching for ad segments — popular ads served from cache avoid repeated delivery charges. |
| Session duration | Longer sessions = more manifest manipulation requests | Linear with session count × duration | Average view time? Short-form = many sessions. Long-form = fewer but longer. |
| Prefetch | Reduces ad latency but increases ADS calls | More ADS requests (may increase ADS cost) | Is ad fill rate critical? Prefetch helps fill rate but costs more ADS calls. |
| Channel Assembly tier | Basic (VOD-only) vs Standard (VOD+live, higher rate) — check current Channel Assembly pricing | Per-hour per-channel | Do you need live source stitching? If VOD-only schedule → Basic saves. |
| Channel Assembly vs live encode | Channel Assembly avoids encoding cost for schedule-based linear | Eliminates MediaLive cost entirely | Is source already encoded VOD assets? → Channel Assembly. Live source? → MediaLive required. |
CDN delivery (CloudFront)
| Decision | Cost driver | Scaling | Right-size by asking |
|---|---|---|---|
| Origin Shield | Per-request cost at shield tier, but reduces origin load dramatically | Net savings when >5 edge locations hit origin | How many edge locations serve viewers? >5 → likely saves money AND protects origin. |
| Cache TTLs | Shorter manifest TTL = more origin requests | Inverse | Don't go below half-segment-duration. Longer = cheaper but staler. |
| Price class | All edge locations vs subset (100/200) | Step — fewer locations = lower per-GB in some regions | Where are viewers? If 95% in NA/EU, PriceClass_100 saves on AP/SA egress pricing. |
| Regional pricing variation | AP, SA, Middle East, Africa regions cost 2-3x NA/EU per-GB | Geographic | Geo-restrict to licensed territories — saves money AND enforces rights. |
| Per-request charges | Billed per 10K HTTP/S requests, separate from data transfer | Linear with request count | Short segments (2s) = 3x the requests of 6s segments. Factor request cost, not just transfer. |
| Compression on manifests | Reduces transfer size 60-80% | Multiplicative on manifest egress | Always enable on manifests. Never on segments (already compressed). |
| Reserved capacity | CloudFront committed pricing at volume (check current CloudFront pricing for savings) | Savings scale with sustained egress | Monthly egress >10 TB sustained? → Reserved pricing. |
| Origin-to-CloudFront transfer | Data from AWS origins (S3, MediaPackage) to CloudFront is free | Zero cost | This is why CDN-fronting MediaPackage saves money — origin egress is free to CloudFront. |
Storage (S3)
| Decision | Cost driver | Scaling | Right-size by asking |
|---|---|---|---|
| Archive retention | Every hour of live archive = bitrate × duration in storage | Linear, accumulates indefinitely | How long must recordings be kept? Set lifecycle policies. 30 days? 90? |
| Storage class | Standard vs IA vs Glacier | Step savings (50-90%) for infrequent access | Are archives accessed after 24h? → IA. After 90d? → Glacier. |
| VOD output duplication | Multiple output formats = multiplied storage | Linear per format | Do you need MP4 + HLS + DASH separately, or can MediaPackage v2 JIT-package from one? |
| Request costs (PUT/GET) | High segment counts = high request volume (each segment = 1 PUT on archive, 1 GET on playback) | Linear with segment count | At 2s segments, a 1-hour recording = 1,800 PUTs. At 6s = 600. Request costs can exceed storage for short-lived content. |
| Lifecycle transitions | Moving to IA/Glacier incurs per-object transition fee | Per-object one-time | Many small segments = high transition cost. Consider fewer, larger archive chunks if lifecycle is planned. |
Cost Amplifiers — Upstream Decisions That Cascade
These decisions multiply cost across multiple downstream services simultaneously. Flag them early because they have outsized impact.
| Upstream decision | Services amplified | Example |
|---|---|---|
| Adding an ABR rung | MediaLive encode + MediaPackage ingest + MediaPackage egress + CloudFront egress + S3 archive | 1 extra rung at 3 Mbps with 10K viewers = (encoding hrs × rate) + (egress GB × per-GB price × viewer count) across the chain, not just encoding |
| Increasing bitrate | MediaPackage egress + CloudFront egress + S3 storage | Doubling bitrate roughly doubles egress cost (the dominant cost at scale) |
| Shortening segment duration | MediaPackage request count + CloudFront request count + Origin Shield requests | 2s segments = 3x the requests of 6s segments |
| Extending DVR window | MediaPackage origin storage + manifest size + CloudFront manifest transfer | 4-hour DVR vs 15-min = 16x origin storage for that channel |
| STANDARD vs SINGLE_PIPELINE | MediaLive (2x) + MediaConnect (2x outputs) + MediaPackage (2x ingest) | Full chain doubles, not just encoding |
When presenting cost optimization, always trace the decision through the full chain to show total impact, not just the single-service cost.
Procedure
Gather context: environment (prod/dev), audience profile, SLA, content type, expected viewership.
Query existing resources for baseline costs and utilization.
For each applicable decision, state where on the spectrum you recommend and why.
Find current per-unit pricing for the relevant services. If the AWS MCP server's
search_documentationtool is available, use it; otherwise consult the public AWS pricing pages for each service.Compute costs deterministically, not in your head — do NOT perform mental math or approximate in prose. If a Python runtime is available (the AWS MCP server's
run_scripttool, or a local interpreter), write and run a script that:Accepts the pricing units from step 4 and the user's parameters (hours, bitrate, viewer count, segment duration, etc.)
Calculates monthly cost per service and total
Computes all variants in one script when comparing scenarios, returning a comparison table If no runtime is available, lay out the arithmetic explicitly (per-unit price × quantity for each line item) and sum it step by step so the calculation is auditable.
Present results as a table with per-service breakdown. If multiple scenarios, show side-by-side.
Wait for user approval before creating resources.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server, Needs a command-line tool
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- AWS
- Publisher
- AWS (Official)
- Source
- aws/agent-toolkit-for-aws · skills/specialized-skills/media-services-skills/aws-media-services · commit 0a218f8
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by AWS or AWS.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download aws-media-services.zip