hf-cloud-aws-context-discovery
在任何 AWS 任务开始时,发现用户的本地 AWS 上下文(活动配置文件、区域、账户 ID、调用者身份)。在进行任何其他 AWS 工作之前使用此技能——部署到 SageMaker、创建资源、调用 AWS API,或任何涉及 AWS 账户的操作。尤其当用户未明确指定区域或配置文件时,当他们说“使用我的 AWS 账户”“部署到 AWS”“使用我的配置文件”之类的话时,或即将进行任何 AWS CLI 或 SDK 调用时使用。切勿猜测区域或账户 ID——始终先使用此技能从本地配置中读取。
机器翻译查看英文原文
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.
适用对象:云服务、运维与安全。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- AWS Context Discovery
- What to discover
- 1. Active profile
- 2. Region
- 3. Credentials, account ID, caller ARN
- 4. Identify SSO / assumed-role principals
- Commands to run
- What to report back
Before doing any AWS work, read the user's local AWS config. Don't guess the region, and don't ask the user for things their config already answers. Run these at the start of the AWS work and remember the results for the rest of the session. AWSPROFILE env var, else default. If the user mentioned a profile in their prompt, that overrides. If the named profile doesn't exist in /.aws/config, surface that clearly. Resolution order — stop at the first one that produces a value: 1. Region the user explicitly named in this conversation 2. AWSREGION env var 3. AWSDEFAULTREGION env var 4. region field on the active profile in /.aws/config 5. Ask the user — but only after the first four have failed Do not fall back to us-east-1 or any other hardcoded default. Three purposes in one call: confirms credentials are valid (stop if not), returns the Account ID (needed for ARN construction), returns the Arn of the caller. The Arn field tells you what kind of principal this is. The pattern matters because it determines what IAM operations the caller can do. | ARN pattern | Type | IAM write capability | |---|---|---| | arn:aws:iam:: :user/ | IAM user | Depends on attached policies | | arn:aws:sts::
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- huggingface/skills
- 源文件
- skills/hf-cloud-aws-context-discovery/SKILL.md
- 固定版本
- 25910b3d0ba31a2ba102f901cdc9e008c278a69c
准备条件
- 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。
第一件可以尝试的小事
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
对应 AI 工具说明
作者有说明不等于本站实机验证。没有证据时,不自动标为兼容、安全或免费。
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:huggingface/skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T16:01:02.677Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
Apache-2.0。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。