Preview every file this package writes on install before you run the command above.
Summary
|
Skill instructions
FunctionGraph Function Creation & Invocation Skill
Overview
This skill manages FunctionGraph functions on Huawei Cloud, supporting creation with
advanced configuration (VPC, environment variables) and function invocation (sync/async).
Architecture: Uses Huawei Cloud FunctionGraph Python SDK to interact with
FunctionGraph service.
Applicable Scenarios:
Quickly create cloud functions without manual console login
Batch creation of multiple functions with VPC or environment variable configuration
Foundation component for workflow deployment
CI/CD integration for function deployment
Invoke and test deployed functions
Typical Use Cases:
"Create a Python function named my_handler"
"Deploy this code to FunctionGraph with VPC configuration"
Note: The function URN uses the real FunctionGraph URN prefix urn:fss:.
Replace PROJECT_ID in the examples below with your actual project ID
(the same value as the HUAWEI_PROJECT_ID environment variable). The
function package is default and the version is latest (or a specific
version/alias). You can copy the URN returned by the create command and
append :latest for invocation.
# Verify function exists using SDKfrom huaweicloudsdkfunctiongraph.v2.functiongraph_client import FunctionGraphClient
from huaweicloudsdkfunctiongraph.v2.model import ListFunctionsRequest
# List functions to verify creation
client = FunctionGraphClient.new_builder().build()
request = ListFunctionsRequest()
response = client.list_functions(request)
print(f"Total functions: {len(response.functions)}")
Output Format
Create Output
The script returns a structured JSON object:
json
{"status":"success","function_urn":"urn:fss:cn-north-4:project_id:function:default:my_function","function_name":"my_function","runtime":"Python3.9","memory_size":128,"timeout":3,"handler":"index.handler","code_size":1234,"message":"Function created successfully"}
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/huaweicloud/huawei-cloud-functiongraph-function-create/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@huaweicloud/huawei-cloud-functiongraph-function-create@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: |
Generate Huawei Cloud Terraform configurations and execute deployment with user-guided approval. Use this skill when users want to create Huawei Cloud infrastructure as Terraform, whether they ask explicitly for Terraform or describe goa...
Run aipm add @huaweicloud/huawei-cloud-functiongraph-function-create@1.0.0 in a project that has AIPM initialized.
Supported tools
@huaweicloud/huawei-cloud-functiongraph-function-create@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.