infrastructure

Enforce PAY_PER_REQUEST DynamoDB billing and EC2 spot instance termination policies.

3|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/GunjanGrunge/rrq --skill infrastructure-gunjangrunge
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: infrastructure
Source: https://github.com/GunjanGrunge/rrq/tree/main/skills/infrastructure
Command: npx skills add https://github.com/GunjanGrunge/rrq --skill infrastructure-gunjangrunge

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill drastically reduces cloud infrastructure costs by ensuring resources are only active when needed, eliminating idle spend without compromising quality or performance.

Core Features & Use Cases

  • Cost Optimization: Implements strict rules for DynamoDB (PAY_PER_REQUEST), EC2 (job-launched spot instances with warm pools), and automated termination to minimize expenses.
  • Reliable Execution: Ensures instances are ready when needed via warm pool scheduling and includes a watchdog mechanism for fail-safe termination.
  • Use Case: Before launching any new service that requires DynamoDB tables or GPU instances, consult this Skill to ensure adherence to cost-saving policies, preventing unnecessary AWS charges.

Quick Start

Review the three core rules for DynamoDB, EC2, and Watchdog before provisioning any new infrastructure.

Frequently Asked Questions about infrastructure

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

FAQPage Schema
How do I eliminate idle EC2 spend on AWS spot instances?▼

You can eliminate idle EC2 spend by launching spot instances specifically for jobs and utilizing warm-pool scheduling. A two-layer termination system, combining self-termination and a Lambda Watchdog, ensures instances shut down immediately after task completion.

What is the best way to configure DynamoDB for zero idle cost?▼

The best way to configure DynamoDB for zero idle cost is to enforce PAY_PER_REQUEST billing. This ensures you only incur charges when actual read or write operations occur, completely eliminating provisioned capacity idle spend.

How does a Lambda Watchdog terminate EC2 spot instances?▼

A Lambda Watchdog acts as a fail-safe termination layer for EC2 spot instances. It monitors running instances and forces termination if self-termination mechanisms fail, guaranteeing no idle resources remain active.

Can I use this infrastructure Skill to manage GPU instances?▼

Yes, you can use this Skill to manage GPU instances. It includes detailed configurations for instance types and boot scheduling, ensuring GPU resources are job-launched and properly terminated to prevent unnecessary AWS charges.

When do I need warm-pool scheduling for EC2 spot instances?▼

You need warm-pool scheduling for EC2 spot instances when reliable execution is critical. It ensures instances are pre-booted and ready when needed, eliminating startup latency while still enforcing strict termination to minimize expenses.