ec2-instance

ec2-instance is a skill for Claude Code from AlexK020908/infra-designer. It costs 0 tokens per session (537 once invoked), scanned B, original, MIT.

A deployment setup that runs an application's Docker container on one Amazon EC2 virtual machine. A virtual machine is a rented computer in the cloud, and Docker packages the application so it can run there.

In plain words
What is it for?
Running app code on one server for steady hobby or early-stage traffic when the user can operate a server. It is not for hosting databases or other data stores.
Why use it?
It offers a fixed-cost way to run an application, but leaves patching, restarts, updates, and failures to the operator.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the infra-designer plugin — 19 skills, 5 commands shipped together

Good fit Running app code on one server for steady hobby or early-stage traffic when the user can operate a server. It is not for hosting databases or other data stores.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexk020908/infra-designer/ec2-instance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AlexK020908/infra-designer --skill ec2-instance
Clone the repo
git clone --depth 1 https://github.com/AlexK020908/infra-designer

Made for: Claude Code.

Or install infra-designer, the plugin that ships this one along with the rest of its 19 skills, 5 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ec2-instance

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexk020908/infra-designer/ec2-instance.svg)](https://agentmods.dev/skills/alexk020908/infra-designer/ec2-instance)
Your own site
<a href="https://agentmods.dev/skills/alexk020908/infra-designer/ec2-instance"><img src="https://agentmods.dev/badge/skills/alexk020908/infra-designer/ec2-instance.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 537 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00537
Opus 5 $0.00000 $0.00269
Sonnet 5 $0.00000 $0.00107
Haiku 4.5 $0.00000 $0.00054

Measured 7d ago against content hash b7113282ee76, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

ec2-instance scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Changing the image template parameter replaces the instance with one running the new image (1–3 min downtime); day-to-day, the user or their coding agent can `aws ssm start-session`, then `sudo docker pull` + restart.
infra-plugin/components/aws/ec2-instance/SKILL.md · 23 lines

How it starts

The opening of the file, as written. The whole thing — 23 lines — stays where its author put it; the contents beside it link to each section on GitHub.

aws.ec2.instance (single VM — advanced)

One virtual machine that boots Docker (user-data) and runs the app's container. Cheapest fixed-cost compute: a t3.small is ~$15/mo flat, no per-request pricing — undercuts managed compute for steady hobby/MVP traffic.

When to use (opt-in only)

  • OPT-IN ONLY: propose it only when interactionMode is collaborative/expert AND the user signals they can operate a server (or asks for EC2 by name). Guided users get aws.apprunner.service instead. The user owns the box: patching, restarts, manual updates, downtime on instance loss.

App compute only

  • APP COMPUTE ONLY. Never self-host stateful infrastructure on it — no Postgres, Kafka, Redis, or Mongo in the container. A single-instance database or broker loses data when the instance dies. Use the managed equivalents (aws.rds.postgres, aws.sqs.queue/aws.sns.topic, aws.elasticache.redis) and say why.

Single point of failure (no HA)

  • Single point of failure by design: no autoscaling, no failover. If the user needs HA or more than one instance, that is aws.albaws.ecs.service — do NOT stack multiple EC2 nodes or put EC2 behind an ALB (the v1 compiler doesn't wire instance target groups; the lint will warn).

What the v1 compiler emits

  • Security group open on HTTP:80 to the world with the container port mapped to 80; wired env vars written to /etc/app.env; least-privilege IAM instance role for S3/SQS/DynamoDB/SNS/Lambda/Secrets edges; SSM Session Manager access (shell via aws ssm start-session — no SSH keys, no port 22); an Elastic IP as the stable public address.
  • TLS is not emitted (HTTP:80 only). Cheapest production path: put aws.cloudfront.distribution in front, or run a reverse proxy with a certificate — note it in agentNotes either way.

Updates

  • Changing the image template parameter replaces the instance with one running the new image (1–3 min downtime); day-to-day, the user or their coding agent can aws ssm start-session, then sudo docker pull + restart. Spell the chosen update path out in agentNotes.

Read the full file on GitHub · 23 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 23 lines · 0 tokens per session scan B b7113282ee76

Subscribe to this mod's changes

ec2-instance is a skill published in the GitHub repository AlexK020908/infra-designer (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 537 tokens. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

azure-kubernetes-service

Expert knowledge for Azure Kubernetes Service (AKS) development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when running AI/GPU workloads, Fleet multi-cluster setups…

MicrosoftDocs/Agent-Skills · 142 tokens

azure-defender-for-cloud

Expert knowledge for Azure Defender For Cloud development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when securing VMs, containers/AKS, SQL, storage, multi‑cloud connectors, or…

MicrosoftDocs/Agent-Skills · 127 tokens

azure-aks-edge-essentials

Expert knowledge for Azure Kubernetes Service Edge Essentials development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when managing AKS Edge/Arc on Azure Local, SDN VNets…

MicrosoftDocs/Agent-Skills · 141 tokens

azure-container-apps

Expert knowledge for Azure Container Apps development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using Dapr, KEDA scaling, Java microservices, GPUs, or CI/CD to Azure…

MicrosoftDocs/Agent-Skills · 118 tokens

azure-container-instances

Expert knowledge for Azure Container Instances development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, and deployment. Use when configuring ACI standby pools, static IP networking, GPU containers, secure ACR pulls, or GitHub…

MicrosoftDocs/Agent-Skills · 119 tokens

azure-redhat-openshift

Expert knowledge for Azure Red Hat OpenShift development including troubleshooting, best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when creating ARO clusters, configuring networking/storage, securing Entra auth & CMK, or integrating…

MicrosoftDocs/Agent-Skills · 115 tokens