Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aws avatar

Setting Up Ec2 Instance Profiles

  • 2.7k installs
  • 2.2k repo stars
  • Updated August 4, 2026
  • aws/agent-toolkit-for-aws

setting-up-ec2-instance-profiles is an agent skill that configures ec2 instances to securely call aws services by creating and attaching iam roles via instance profiles, eliminating hardcoded credentials. use when an ec2

About

setting-up-ec2-instance-profiles is an agent skill from aws/agent-toolkit-for-aws that configures ec2 instances to securely call aws services by creating and attaching iam roles via instance profiles, eliminating hardcoded credentials. use when an ec2 instance needs permissions to acces. # 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 v Developers invoke setting-up-ec2-instance-profiles during operate/infra work for cloud & infrastructure tasks. The skill documents triggers, prerequisites, and step-by-step workflows grounded in SKILL.md. Compatible with Claude Code, Cursor, and Codex agent runtimes that load marketplace skills.

  • Setting Up EC2 Instance Profiles
  • 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.

Setting Up Ec2 Instance Profiles by the numbers

  • 2,749 all-time installs (skills.sh)
  • +367 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #149 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

setting-up-ec2-instance-profiles capabilities & compatibility

Capabilities
setting up ec2 instance profiles · domain expertise for granting ec2 instances secu · and instance profiles. covers the full lifecycle · or reusing iam roles with least privilege polici · them to ec2 instances, and verifying credential
Use cases
orchestration
From the docs

What setting-up-ec2-instance-profiles says it does

Domain expertise for granting EC2 instances secure access to AWS services using IAM roles
SKILL.md
and instance profiles. Covers the full lifecycle: identifying required permissions, creating
SKILL.md
or reusing IAM roles with least-privilege policies, creating instance profiles, attaching
SKILL.md
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill setting-up-ec2-instance-profiles

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2.7k
repo stars2.2k
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryaws/agent-toolkit-for-aws

What it does

Configures EC2 instances to securely call AWS services by creating and attaching IAM roles via instance profiles, eliminating hardcoded credentials. Use when an EC2 instance needs permissions to acces

Who is it for?

Developers working on cloud & infrastructure during operate tasks.

Skip if: Tasks outside Cloud & Infrastructure scope described in SKILL.md.

When should I use this skill?

Configures EC2 instances to securely call AWS services by creating and attaching IAM roles via instance profiles, eliminating hardcoded credentials. Use when an EC2 instance needs permissions to acces

What you get

Completed cloud & infrastructure workflow aligned with SKILL.md steps.

  • IAM role definition
  • Instance profile
  • EC2 instance profile attachment

Files

SKILL.mdMarkdownGitHub ↗

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 <region>.

Instance already has a profile

The procedure handles replacement — it will prompt before disassociating the existing profile.

Credentials not available after attachment

Instance profile propagation can take 30–60 seconds. Applications may need a restart to pick up new credentials.

Access denied errors

Check that the role's policies include the required actions and resource ARNs. Review CloudTrail logs for the specific denied action.

Application still uses hardcoded credentials

Remove credentials from config files, environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY), and ~/.aws/credentials. The SDK default credential chain will then use the instance profile.

Related skills

FAQ

What does setting-up-ec2-instance-profiles do?

Configures EC2 instances to securely call AWS services by creating and attaching IAM roles via instance profiles, eliminating hardcoded credentials. Use when an EC2 instance needs permissions to acces

When should I use setting-up-ec2-instance-profiles?

During operate infra work for cloud & infrastructure.

Is setting-up-ec2-instance-profiles safe to install?

Review the Security Audits panel on this listing before production use.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.