Loading...
Loading...
Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use this skill before any other AWS work — deploying to SageMaker, creating resources, calling AWS APIs, or anything that touches an AWS account. Use it especially when the user has not specified a region or profile explicitly, when they say things like "use my AWS account", "deploy to AWS", "use my profile", or when about to make any AWS CLI or SDK call. Never guess the region or account ID — always use this skill to read it from the local configuration first.
npx skill4agent add huggingface/skills hf-cloud-aws-context-discoveryAWS_PROFILEdefault~/.aws/configAWS_REGIONAWS_DEFAULT_REGIONregion~/.aws/configus-east-1aws sts get-caller-identity --profile <profile> --region <region>AccountArnArn| ARN pattern | Type | IAM write capability |
|---|---|---|
| IAM user | Depends on attached policies |
| SSO assumed-role | Typically none — can't create/modify IAM roles |
| Regular assumed-role | Depends on the role |
iam:CreateRoleHeads up: you're authenticated via SSO (). SSO principals usually can't create IAM roles directly. If we need a SageMaker execution role, I'll look for an existing one first — if none exists, you'll need to ask whoever manages your AWS access to create one.AWSReservedSSO_<PermissionSet>_...
# Effective profile and region (faster than parsing config files)
aws configure list
# Validate credentials and get identity
aws sts get-caller-identity
aws sts get-caller-identity --profile <profile-name> # if a profile was namedaws configure list~/.aws/config~/.aws/config~/.aws/credentialsWorking with profileinmy-profile, accounteu-west-1. You're authenticated via SSO, so we'll need to use an existing IAM role rather than create one.123456789012