Setting Up EC2 Instance Profiles
Overview
Domain expertise for granting EC2 instances secure access to AWS services using IAM roles
and instance profiles. Covers the full lifecycle: identifying required permissions, creating
or reusing IAM roles with least-privilege policies, creating instance profiles, attaching
them to EC2 instances, and verifying credential availability.
Configure an EC2 instance profile
To set up an IAM role and instance profile for an EC2 instance, follow the procedure exactly.
See
EC2 instance profile setup procedure
.
Troubleshooting
Instance not found
Verify the instance ID and region are correct. List instances with
aws ec2 describe-instances --region
setting-up-ec2-instance-profiles
安装
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill setting-up-ec2-instance-profiles