setting-up-ec2-instance-profiles
CommunityGrant EC2 least-privilege with instance roles.
Legal & Compliance#ec2#least privilege#credential management#security best practices#iam roles#instance profile#imds v2
Authormreferre
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you avoid hardcoded AWS credentials on EC2 by configuring IAM roles and instance profiles so your instance can securely access required AWS services using temporary credentials.
Core Features & Use Cases
- IAM role + instance profile lifecycle: Create or reuse an IAM role, attach least-privilege permissions, create an instance profile, and associate it with a target EC2 instance.
- Least-privilege permission planning: Recommend scoped actions per requested service (e.g., S3, DynamoDB, SQS, CloudWatch Logs) and steer you away from overly broad FullAccess policies.
- Credential verification via IMDSv2: Provide explicit in-instance test steps to confirm the role can be assumed and credentials are available through the Instance Metadata Service.
Quick Start
Run the procedure in the Skill to configure the IAM role, create the instance profile, attach it to your EC2 instance, and verify credentials using IMDSv2.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: setting-up-ec2-instance-profiles Download link: https://github.com/mreferre/aws-agent-toolkit-skills/archive/main.zip#setting-up-ec2-instance-profiles Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.