ec2

Provision and configure EC2 instances with security groups, key pairs, and AMIs.

1.1k|444|Updated May 18, 2019
One-click install
npx skills add https://github.com/itsmostafa/aws-agent-skills --skill ec2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ec2
Source: https://github.com/itsmostafa/aws-agent-skills/tree/main/skills/ec2
Command: npx skills add https://github.com/itsmostafa/aws-agent-skills --skill ec2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

EC2 is central to running workloads in AWS. This skill helps users provision, configure, and troubleshoot EC2 resources—instances, AMIs, networking, and security settings—reducing manual steps and misconfigurations.

Core Features & Use Cases

  • Launch and configure EC2 instances with security groups, key pairs, and user data.
  • Manage AMIs, instance types, and networking configurations for scalable workloads.
  • Follow security and reliability best practices, including IMDSv2 enforcement and Session Manager access.

Quick Start

Launch a t3.micro EC2 instance in a public subnet with a security group that allows SSH, then verify connectivity.

Frequently Asked Questions about ec2

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

FAQPage Schema
How do I provision and configure EC2 instances with security groups and key pairs?

To provision EC2 instances, you configure security groups, key pairs, and user data during launch. This skill prescribes CLI and boto3 usage to automate instance creation and apply security settings for scalable workloads.

What's the best way to manage AMIs and networking configurations for AWS EC2 instances?

Managing AMIs and networking for EC2 instances involves selecting appropriate instance types and configuring network settings. This skill guides you through boto3 and CLI commands to automate AMI management and network setup for web apps or batch jobs.

Can I use boto3 to troubleshoot EC2 instance connectivity and security group rules?

Yes, you can use boto3 to troubleshoot EC2 instances by validating security group rules and network configurations. This skill outlines CLI and boto3 practices to diagnose misconfigurations and verify connectivity across typical AWS environments.

Does this EC2 skill apply security best practices like IMDSv2 enforcement and Session Manager access?

Yes, this EC2 skill enforces security and reliability best practices, including IMDSv2 enforcement and Session Manager access. It prescribes safe EC2 operations to reduce manual misconfigurations across your AWS infrastructure.

How do I launch an EC2 instance in a public subnet and verify SSH connectivity?

To launch an EC2 instance in a public subnet, you create a security group allowing SSH and configure user data. This skill provides steps to provision a t3.micro instance and verify connectivity using CLI or boto3.

Why should I use automated CLI scripts instead of the AWS console for EC2 server management?

Using CLI scripts and boto3 for EC2 server management reduces manual steps and misconfigurations. This skill prescribes automation practices to ensure scalable, safe operations across development sandboxes and production environments.