Registry / devops / pulumi-xyz

pulumi-xyz

JSON →
library1.1.375pypypi✓ verified 86d ago

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
INSTALL
IMPORT
SIG · PULUMI-XYZ
P
pulumi-xyz
devopspythonv1.1.375
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Provider
from pulumi_xyz import Provider
import pulumi_xyz
Wrong import does not expose the Provider class directly. Use 'from pulumi_xyz import Provider'.
Resource
from pulumi_xyz import ResourceName
from pulumi_xyz.resource_name import ResourceName
Resources are flat in the top-level module; submodule imports may not exist.

Basic usage: create a provider and a resource. Set XYZ_API_TOKEN environment variable.

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)
Debug
Known issues
deprecatedResource 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.
affects: all
gotchaDo 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').
affects: >=1.0.0
gotchaProvider 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.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pulumi_xyz'
Package not installed or installed in wrong environment.
fix
Run 'pip install pulumi-xyz' in the same Python environment as your Pulumi program.
pulumi.errors.ResourceError: Error reading from XYZ API: 403 Forbidden
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.
TypeError: __init__() got an unexpected keyword argument 'name'
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.
Upgrade
Version history
1.1.375latest on PyPI · released Mar 17, 2026
Audit
Dependencies
pulumirequiredRequired for Pulumi infrastructure as code
Agent activity
4 hits · last 30 days
node
4
Resources