launching-ec2-instance-with-best-practices

Provision EC2 instances with validated VPC placement, least-privilege IAM roles, and encrypted gp3 volumes.

Updated May 12, 2026
One-click install
npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill launching-ec2-instance-with-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: launching-ec2-instance-with-best-practices
Source: https://github.com/mreferre/aws-agent-toolkit-skills/tree/main/.kiro/skills/launching-ec2-instance-with-best-practices
Command: npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill launching-ec2-instance-with-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you avoid insecure and wasteful EC2 launches by guiding you through secure defaults for networking, IAM, security groups, storage encryption, and tagging.

Core Features & Use Cases

  • Best-practice EC2 launch workflow: Selects an appropriate AMI, recommends an instance type, and validates network placement (VPC/subnet/public vs private).
  • Least-privilege access: Creates an IAM role and instance profile with appropriate permissions, and defaults to SSM Session Manager when SSH access is not requested.
  • Hardened security and secure storage: Builds minimal ingress security group rules, enforces encrypted gp3 EBS volumes, and supports post-launch verification and troubleshooting guidance.
  • Consistent tagging strategy: Applies standardized tags for cost tracking, ownership, and automation readiness.

Quick Start

Launch an EC2 instance in region us-east-1 for a web-server workload in the production environment by following the guided parameter prompts and confirming the recommended defaults.

Frequently Asked Questions about launching-ec2-instance-with-best-practices

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

FAQPage Schema
How do I launch an EC2 instance with secure defaults?

To launch an EC2 instance with secure defaults, you need to enforce IMDSv2, configure encrypted gp3 EBS root volumes, and apply least-privilege IAM roles. This workflow validates VPC subnet placement and builds hardened security group ingress rules.

What is the best way to set up least-privilege IAM for an EC2 instance?

The best way to set up least-privilege IAM for an EC2 instance is to create a dedicated IAM role and instance profile with only necessary permissions. This process defaults to SSM Session Manager for access when SSH is not explicitly requested.

How do I configure encrypted EBS storage when provisioning an EC2 instance?

To configure encrypted EBS storage for an EC2 instance, you enforce encrypted gp3 EBS volumes during the launch workflow. This ensures your root volume meets security requirements for data at rest.

Can I use SSM Session Manager instead of SSH for EC2 instance access?

Yes, you can use SSM Session Manager instead of SSH for EC2 instance access. The provisioning workflow defaults to SSM Session Manager when SSH access is not requested, avoiding open SSH ports and improving security.

How do I apply consistent resource tagging to EC2 instances for cost tracking?

To apply consistent resource tagging to EC2 instances, you use a standardized tagging strategy during launch. This applies tags for cost tracking, ownership, and automation readiness to ensure governance across your cloud resources.

Does this EC2 launch workflow support termination protection and CloudWatch monitoring?

Yes, this EC2 launch workflow includes guardrails for termination protection and CloudWatch monitoring. It also enforces IMDSv2 and provides post-launch verification and troubleshooting guidance.