This Claude skill automates the configuration and management of AWS Identity and Access Management (IAM) resources. It streamlines the setup of users, roles, groups, and policies, ensuring secure and scalable access control for AWS environments while enforcing security best practices like least privilege and identity federation. By providing structured templates and automated CLI commands, it reduces manual configuration errors and accelerates cloud environment provisioning.
Use Cases
Automated User Onboarding: Quickly create IAM users with specific organizational paths and attach necessary managed policies for new team members.
Secure Service Access: Configure IAM roles with precise trust policies to allow AWS services like EC2 or Lambda to interact securely with other AWS resources.
Granular Policy Management: Create and attach custom JSON permission policies to enforce the principle of least privilege across different development environments.
Identity Federation Setup: Configure roles and identity providers to enable secure federated access for external users or cross-account resource sharing.
Security Auditing and Remediation: Use the skill to update or delete outdated IAM entities and rotate access keys to maintain a high security posture.
name
aws-iam-setup
description
Configure AWS IAM users, roles, policies, and identity federation
sasmp_version
"1.3.0"
bonded_agent
01-aws-fundamentals
bond_type
PRIMARY_BOND
AWS IAM Setup Skill
Configure secure identity and access management for AWS resources.
Quick Reference
Attribute
Value
AWS Service
IAM
Complexity
Medium
Est. Time
15-30 min
Prerequisites
AWS account, admin access
Parameters
Required
Parameter
Type
Description
Validation
entity_type
string
user, role, group, policy
enum
entity_name
string
Name for the entity
^[a-zA-Z0-9+=,.@_-]{1,64}$
action
string
create, update, delete, attach
enum
Optional
Parameter
Type
Default
Description
path
string
/
IAM path for organization
max_session_duration
int
3600
Role session duration (seconds)
permissions_boundary
string
null
ARN of permissions boundary
tags
object
{}
Resource tags
Implementation
Create IAM User
# Create user with console access
aws iam create-user --user-name $USERNAME --path /developers/
# Create access keys
aws iam create-access-key --user-name $USERNAME
# Attach managed policy
aws iam attach-user-policy \
--user-name $USERNAME \
--policy-arn arn:aws:iam::aws:policy/PowerUserAccess
Create IAM Role
# Create role with trust policy
aws iam create-role \
--role-name $ROLE_NAME \
--assume-role-policy-document file://trust-policy.json \
--max-session-duration 7200
# Attach policy
aws iam attach-role-policy \
--role-name $ROLE_NAME \
--policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess