AWS Context Discovery
Independent PiSkill directory guide. The original skill remains hosted by Hugging Face Skills.
What is AWS Context Discovery?
Discovers the active AWS profile, region, account, and caller identity before Hugging Face cloud or SageMaker work so later steps use the correct AWS context.
What does AWS Context Discovery do?
AWS Context Discovery is a Hugging Face skill that should run before AWS deployment work to determine the active AWS profile, region, account ID and caller identity from the user's actual local configuration. Its main purpose is to stop agents from guessing credentials or regions and to surface permission constraints early.
Who is AWS Context Discovery best for?
- Developers deploying Hugging Face workloads to AWS
- Users with several AWS profiles or regions
- Teams using SSO or assumed roles
- Agents preparing SageMaker or other AWS API calls
Common use cases
- Resolve the effective AWS profile and region
- Validate credentials with STS
- Determine the current AWS account ID and caller ARN
- Detect SSO identities that may not be able to create IAM roles
How does AWS Context Discovery work?
The skill reads the explicit conversation context and local AWS configuration in priority order, then validates the resolved identity with `aws sts get-caller-identity`. It interprets the caller ARN so permission limitations such as SSO-based IAM restrictions can be surfaced before a later deployment fails.
Key benefits
- Prevents hard-coded region guesses
- Catches expired or invalid credentials early
- Makes AWS account and caller identity explicit
- Surfaces likely SSO permission limitations before deployment
Things to know
- The workflow requires access to the user's local AWS configuration and CLI
- It discovers context but does not grant missing permissions
- Organization-specific IAM policy can still differ from typical SSO behavior
Compatible tools
Frequently asked questions
Why use AWS Context Discovery before deploying?
Why does the skill inspect the caller ARN?
Related skills
Python Environment Setup for Hugging Face Cloud
Sets up an isolated Python environment for Hugging Face cloud and SageMaker workflows with an appropriate Python version and current AWS tooling.
SageMaker Production Defaults
Guides production-oriented SageMaker endpoint setup with sensible serving modes, autoscaling, monitoring alarms, and tagging instead of a minimal development-only deployment.
Serving Image Selection
Helps choose an appropriate serving container for a Hugging Face model deployment on SageMaker and identify the current container image URI for the target setup.
AWS CDK
Supports authoring, deploying, refactoring, and troubleshooting AWS CDK infrastructure in TypeScript or Python, including stack design, constructs, drift, imports, and safe deployment workflows.
AWS CloudFormation
Guides infrastructure-as-code work with AWS CloudFormation, including template authoring, deployment, troubleshooting, stack behavior, dependencies, and production-safe infrastructure changes.
AWS Compute
Helps provision, scale, and operate EC2 workloads, covering instance selection, launch templates, Auto Scaling, Spot, AMIs, IMDSv2, Systems Manager, and common fleet failures.