Pulumi XYZ Provider
raw JSON → 1.1.375 verified Sat May 09 auth: no python
A Pulumi package for creating and managing xyz cloud resources. This provider is automatically generated from the XYZ Terraform provider and is part of the Pulumi ecosystem. Currently at version 1.1.375, it follows a rapid release cadence with frequent updates to the underlying Terraform bridge and dependencies.
pip install pulumi-xyz Common errors
error ModuleNotFoundError: No module named 'pulumi_xyz' ↓
cause Package not installed or installed in wrong environment.
fix
Run 'pip install pulumi-xyz' in the same Python environment as your Pulumi program.
error pulumi.errors.ResourceError: Error reading from XYZ API: 403 Forbidden ↓
cause Authentication failure due to missing or invalid API token.
fix
Set the XYZ_API_TOKEN environment variable or pass api_token to the Provider constructor.
error TypeError: __init__() got an unexpected keyword argument 'name' ↓
cause Using a resource property that does not exist; check resource schema in provider documentation.
fix
Consult the official provider docs for available resource arguments; use snake_case names.
Warnings
deprecated Resource properties may be deprecated without notice; check provider documentation for any deprecation warnings in resource arguments. ↓
fix Review the official XYZ Terraform provider docs for deprecated arguments and migrate to new properties.
gotcha Do not use camelCase property names for resources; Pulumi uses snake_case for Python bindings. ↓
fix Use snake_case property names (e.g., 'api_token' not 'apiToken').
gotcha Provider configuration may require explicit region or endpoint; missing region can cause cryptic authentication errors. ↓
fix Always set region and endpoint in the Provider constructor or via environment variables.
Imports
- Provider wrong
import pulumi_xyzcorrectfrom pulumi_xyz import Provider - Resource wrong
from pulumi_xyz.resource_name import ResourceNamecorrectfrom pulumi_xyz import ResourceName
Quickstart
import pulumi
from pulumi_xyz import Provider, SomeResource
# Replace with your XYZ API token
xyz_provider = Provider("my-xyz-provider", api_token=os.environ.get("XYZ_API_TOKEN", ""))
resource = SomeResource("my-resource",
name="example",
opts=pulumi.ResourceOptions(provider=xyz_provider))
pulumi.export("id", resource.id)