aws-ec2

aws-ec2 is a skill for Claude Code, Codex from eliecer2000/kiro-bootstrap. It costs 40 tokens per session (1,369 once invoked), scanned A, original, MIT.

Cloud server configuration for Amazon EC2, a service that runs virtual machines on AWS. It covers machine images, server sizes, network access, permissions, scaling, storage, and repeatable image building.

In plain words
What is it for?
Use it when configuring EC2 instances, AMIs, security groups, IAM roles, Auto Scaling Groups, EBS volumes, user data, or Packer images.
Why use it?
It helps set up EC2 servers without overlooking access restrictions, credentials, storage, scaling, or deployment consistency.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when configuring EC2 instances, AMIs, security groups, IAM roles, Auto Scaling Groups, EBS volumes, user data, or Packer images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliecer2000/kiro-bootstrap/aws-ec2
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 eliecer2000/kiro-bootstrap --skill aws-ec2
Clone the repo
git clone --depth 1 https://github.com/eliecer2000/kiro-bootstrap

Made for: Claude Code, Codex.

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 aws-ec2

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliecer2000/kiro-bootstrap/aws-ec2.svg)](https://agentmods.dev/skills/eliecer2000/kiro-bootstrap/aws-ec2)
Your own site
<a href="https://agentmods.dev/skills/eliecer2000/kiro-bootstrap/aws-ec2"><img src="https://agentmods.dev/badge/skills/eliecer2000/kiro-bootstrap/aws-ec2.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,369 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00040 $0.01369
Opus 5 $0.00020 $0.00685
Sonnet 5 $0.00008 $0.00274
Haiku 4.5 $0.00004 $0.00137

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

Security

Grade A, and why

aws-ec2 scanned grade A 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 8d 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 rootlowPrivilege escalation

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

"sudo dnf update -y",

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/aws-ec2/SKILL.md · 169 lines

How it starts

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

AWS EC2

Skill para configurar instancias EC2: AMIs, instance types, security groups, IAM roles, user data, Auto Scaling Groups, EBS volumes, Packer para golden images y mejores prácticas de seguridad y costos.

Principios fundamentales

  • Serverless-first: usar EC2 solo cuando Lambda/Fargate no cubren el caso de uso (procesos largos, GPU, software con licencia, cargas constantes).
  • IAM roles en lugar de access keys. Nunca hardcodear credenciales en user data.
  • Security groups con least privilege: solo puertos necesarios desde fuentes específicas.
  • SSH restringido a IPs conocidas o usar SSM Session Manager (sin puerto 22 abierto).
  • AMIs versionadas con Packer para deployments reproducibles.

Security group seguro (CDK)

const sg = new ec2.SecurityGroup(this, 'WebSG', {
  vpc,
  description: 'Web server security group',
  allowAllOutbound: true,
});

// Solo HTTPS desde internet
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(443), 'HTTPS');

// SSH solo desde bastion o SSM (preferir SSM)
// sg.addIngressRule(ec2.Peer.ipv4('10.0.0.0/8'), ec2.Port.tcp(22), 'SSH from VPC');

Instancia EC2 con SSM (CDK)

const instance = new ec2.Instance(this, 'WebServer', {
  vpc,
  vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.T4G, ec2.InstanceSize.MICRO),
  machineImage: ec2.MachineImage.latestAmazonLinux2023({
    cpuType: ec2.AmazonLinuxCpuType.ARM_64,
  }),
  ssmSessionPermissions: true, // SSM Session Manager en lugar de SSH
  blockDevices: [{
    deviceName: '/dev/xvda',
    volume: ec2.BlockDeviceVolume.ebs(20, {
      encrypted: true,
      volumeType: ec2.EbsDeviceVolumeType.GP3,
    }),
  }],
});

Auto Scaling Group (CDK)

const asg = new autoscaling.AutoScalingGroup(this, 'ASG', {
  vpc,
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.T4G, ec2.InstanceSize.SMALL),
  machineImage: ec2.MachineImage.latestAmazonLinux2023(),
  minCapacity: 2,
  maxCapacity: 10,
  healthCheck: autoscaling.HealthCheck.elb({ grace: cdk.Duration.minutes(5) }),
});

asg.scaleOnCpuUtilization('CpuScaling', {
  targetUtilizationPercent: 70,
  cooldown: cdk.Duration.minutes(5),
});

Read the full file on GitHub · 169 lines

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. 8d ago First seen · 169 lines · 40 tokens per session scan A cc8ff873b63d

Subscribe to this mod's changes

aws-ec2 is a skill published in the GitHub repository eliecer2000/kiro-bootstrap (9 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 1,369 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A 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.