New to Claude Skills? Learn how to install them →

aws on GitHub

Launching EC2 Instances

OfficialFree

Launch EC2 instances securely and cost-effectively.

by aws2.3k stars on aws/agent-toolkit-for-aws
2 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Launching EC2 Instances does

This skill provides a comprehensive guide for launching Amazon EC2 instances while adhering to AWS best practices. It focuses on optimizing security and cost-efficiency by offering sensible defaults for various configurations. The skill covers essential aspects such as selecting the appropriate Amazon Machine Image (AMI), choosing the right instance type, setting up network configurations, and creating least-privilege IAM roles. Additionally, it emphasizes the importance of security group hardening, encrypted storage, and a thorough tagging strategy for resource management.

The process begins with intelligent defaults tailored to the specific workload and environment, ensuring that users can deploy instances that meet both operational and security requirements. The skill also includes post-launch verification steps to confirm that the instance is running as expected. By following the provided procedures, users can avoid common pitfalls and ensure that their EC2 instances are configured for optimal performance and security.

This skill is particularly useful for developers and system administrators who are responsible for deploying cloud infrastructure. It streamlines the process of launching instances by providing clear instructions and best practices, making it easier to adhere to organizational policies and compliance requirements. Whether you are launching a single instance or managing multiple deployments, this skill helps ensure that your EC2 instances are set up correctly from the start.

When to use it

Use this skill when deploying new EC2 instances to ensure they are secure, cost-effective, and compliant with best practices.

When not to use it

This skill may not be suitable for users who require highly customized configurations outside of the provided best practices.

What you can build with it

Deploying a Web Application

Use this skill to launch an EC2 instance configured for hosting a web application, ensuring secure access and cost management.

Testing New Features

Quickly spin up EC2 instances for testing new software features while adhering to security best practices.

Scaling Infrastructure

When scaling your cloud infrastructure, use this skill to maintain consistency and security across multiple EC2 deployments.

How to install Launching EC2 Instances

View source

1. Install with the skills CLI

npx skills add aws/agent-toolkit-for-aws/launching-ec2-instance-with-best-practices --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by aws

Launching EC2 Instances with Best Practices

Overview

Domain expertise for launching EC2 instances with sensible defaults optimized for security, cost-efficiency, and operational best practices. Covers AMI selection, instance type recommendation, network configuration, IAM role creation, security group hardening, storage configuration, tagging strategy, and post-launch verification.

Launch an EC2 instance

To launch a fully configured EC2 instance with best-practice defaults, follow the procedure exactly. See EC2 instance launch procedure.

The procedure handles:

  • Intelligent defaults based on workload type and environment
  • Network validation (VPC, subnet, public/private placement)
  • AMI selection with architecture compatibility checks
  • Least-privilege IAM roles for required AWS service access
  • Hardened security groups with minimal port exposure
  • Encrypted gp3 storage with environment-appropriate retention
  • Comprehensive tagging for cost tracking and organization
  • Post-launch verification and connection instructions

Troubleshooting

Insufficient instance capacity

Try a different availability zone or instance type (e.g., t3a instead of t3). See the full troubleshooting guide in the launch procedure.

Instance immediately terminates

Check console output with aws ec2 get-console-output. Verify EBS volume size is sufficient and AMI is compatible with the instance type.

Cannot connect via SSH

Verify the security group allows SSH from your IP, key file permissions are 400, and the instance is running. Consider AWS Systems Manager Session Manager as an alternative.

Frequently asked questions about Launching EC2 Instances

Similar skills