Huawei Iam logo

Huawei Iam

Organization
huaweicloud
huawei-iam

Use when managing IAM users, groups, roles, policies, agencies, projects, or access keys on Huawei Cloud. Covers IAM policy structure, least-privilege design, temporary credentials (STS), OneAccess integration, and security best practices. Triggers on: IAM, permission, policy, role, user, group, AK/SK, access key, agency, project, authorization. NOT for: DEW secret management (use huawei-cloud-dew-key-management).

Overview

Publisherhuaweicloud
Repositoryhuaweicloud-devkit
Skill namehuawei-iam
Stars
70
Forks
12
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by huaweicloud on GitHub. Read the source before you install it.

Installation

Install the Huawei Iam AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-iam
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-devkit.git /tmp/huaweicloud-devkit
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-devkit/plugins/huaweicloud-core/skills/huawei-iam .claude/skills/huawei-iam
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Huawei Iam in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Huawei Iam on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Huawei Iam is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Huawei Cloud IAM

STOP - Do not answer from general knowledge. Follow the procedure below.

Always run hcloud <Service> <Operation> --help before constructing commands to discover exact parameter names and requirements.

Overview

Domain expertise for Huawei Cloud Identity and Access Management (IAM). Covers user/group/role lifecycle, policy design, temporary credentials, and security best practices.

Critical Warnings

TrapWhy
NEVER create IAM users for humansUse OneAccess (IAM Identity Center) or federated SSO
NEVER create long-term AK/SKUse temporary STS tokens via agencies
Wildcard policies dangerousEffect:Allow + Resource:* = full access. Always scope resources
Agency trust is powerfulAgencies let services assume roles. Always add conditions
Root account must have MFARoot AK/SK is all-powerful. Enable MFA immediately
缺少必填参数 cli-domain-id = invalid credsKooCLI's account-id lookup failed (APIGW.0301). Re-run auth init. Domain-level params (--domain_id, --agency.domain_id) are separate — get the account-id via hcloud STS GetCallerIdentity --cli-region=<region> when needed
Primary-account check = username == domainNameUse huaweicloud_check_account_type (one call). NOT ShowDomainPasswordPolicy (permission-gated, sub-users can succeed) and NOT principal_id == account_id (false for primary accounts too). Full procedure: references/quick-ref.md

Policy Structure

json { "Version": "1.1", "Statement": [{ "Effect": "Allow", "Action": ["ecs:*"], "Resource": ["*"], "Condition": { "StringEquals": {"g:SourceVpc": "vpc-xxx"} } }] }

Common Workflows

TaskCommandSteps
List usershcloud IAM KeystoneListUsers --cli-region=references/quick-ref.md
Create grouphcloud IAM CreateGroupV5 --group_name=references/quick-ref.md
Create custom policyhcloud IAM CreateCloudServiceCustomPolicy --role.display_name= --role.type= --role.policy.Statement.1.Effect=Allowreferences/policy-examples.md
Create agencyhcloud IAM CreateAgency --agency.name= --agency.domain_id= --agency.trust_domain_name=references/quick-ref.md
Get temporary credentialhcloud STS AssumeAgency --agency_urn= --agency_session_name= --duration_seconds=3600references/quick-ref.md
Check primary vs sub-accounthuaweicloud_check_account_type (or 2-call CLI fallback)references/quick-ref.md
Attach policy to grouphcloud IAM AttachGroupPolicyV5 --group_id= --policy_id=references/quick-ref.md

Policy Examples (Least Privilege)

RoleActionsResource
ECS Readerecs:List*, ecs:Get*, ecs:Describe**
OBS Bucket Operatorobs:Get*, obs:Put*, obs:Delete*, obs:List*obs:::bucket:my-bucket
RDS Backup Operatorrds:CreateBackup, rds:RestoreFromBackup, rds:ListBackuprds:*

See references/policy-examples.md for complete policy JSON templates with conditions.

Troubleshooting

ErrorRoot Cause -> Fix
AccessDeniedMissing IAM permission -> Check policy action and resource scope
AuthFailureExpired AK/SK or wrong project -> Renew credentials / Check project ID
Agency trust failedMissing trust policy condition -> Add g:SourceAccount condition
Quota exceededIAM user/group/policy limit -> Request quota increase

Security Considerations

  • MUST NOT create IAM users. Use OneAccess or federated SSO
  • MUST NOT create long-term AK/SK. Use STS temporary tokens
  • MUST scope Resource ARNs. Never use wildcard *
  • MUST add conditions to trust policies (g:SourceAccount, g:SourceUrn)
  • SHOULD rotate credentials every 90 days

Agencies (Cross-Service Delegation)

Agencies allow one service to act on behalf of another. Common use cases:

STS 自委托需预创建(实测 #935 报告4 问题6)

生成 STS 临时凭证时报委托不存在时(如 agency SELF_VERIFY not found),需先预创建名为 SELF_VERIFY 的 IAM 自委托(agency)—— 活动/新环境默认不预置该委托:

bash
# 1. 预创建自委托(信任本账号自身)
hcloud IAM CreateAgency --agency.name=SELF_VERIFY --agency.trust_domain_name=<本账号domain_name>

# 2. 授予基础权限(按需最小化)
hcloud IAM AssociateAgencyWithDomainPermission --agency_id=<agency-id> --role_id=<role-id>

# 3. 之后重试生成 STS 临时凭证

排查顺序:先 hcloud IAM ListAgencies 确认 SELF_VERIFY 是否存在,不存在再按上面步骤预创建,创建后重试 STS 调用。

FunctionGraph Agency (VPC Access)

FunctionGraph needs an agency to access VPC resources (RDS, DCS, etc.):

bash
# 1. Create agency with FunctionGraph trust
hcloud IAM CreateAgency --agency.name=<name> --agency.trust_domain_name=functiongraph

# 2. Grant role to agency
hcloud IAM AssociateAgencyWithDomainPermission --agency_id=<id> --role_id=<role-id>

# 3. Use in CreateFunction
hcloud FunctionGraph CreateFunction ... --app_xrole=<agency-name>

Common roles for FunctionGraph: VPC Administrator, RDS Administrator, DCS Administrator.

MCP Tools

  • huaweicloud_list_operations service=IAM
  • huaweicloud_run_readonly_command for user/policy discovery
  • huaweicloud_check_account_type for primary/sub-account judgment

References

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Huawei Iam AI skill do?

Use when managing IAM users, groups, roles, policies, agencies, projects, or access keys on Huawei Cloud. Covers IAM policy structure, least-privilege design, temporary credentials (STS), OneAccess integration, and security best practices. Triggers on: IAM, permission, policy, role, user, group, AK/SK, access key, agency, project, authorization. NOT for: DEW secret management (use huawei-cloud-dew-key-management).

Why use Huawei Iam on TypingMind?

Because you install it once and use it with any model. Huawei Iam is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Huawei Iam in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-iam. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Huawei Iam?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Huawei Iam?

As many as you like. As long as a model supports skills, you can use Huawei Iam with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Huawei Iam AI skill free?

Yes. It is published on GitHub by huaweicloud under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇