Registry / devops / pulumi-pagerduty

pulumi-pagerduty

JSON →
library4.31.4pypypi✓ verified 86d ago

A Pulumi package for creating and managing PagerDuty cloud resources. Current version 4.31.4, with weekly releases tracking the upstream Terraform provider.

pip install pulumi-pagerduty
INSTALL
IMPORT
SIG · PULUMI-PAGERDUTY
P
pulumi-pagerduty
devopspythonv4.31.4
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.

pagerduty
import pulumi_pagerduty as pagerduty
import pagerduty
The correct import is from pulumi_pagerduty, not the raw pagerduty package

Create a PagerDuty team using Pulumi.

import pulumi import pulumi_pagerduty as pagerduty # Configure PagerDuty provider with API token from environment pagerduty_provider = pagerduty.Provider( "pagerduty-provider", token=pulumi.Config().require_secret("pagerduty:token"), ) # Create a PagerDuty team team = pagerduty.Team( "my-team", name="My Team", description="Team managed by Pulumi", opts=pulumi.ResourceOptions(provider=pagerduty_provider), ) pulumi.export("team_id", team.id)
Debug
Known issues
gotchaAPI token must be provided via config or environment variable; using plain text in code is insecure.
fix
Set PAGERDUTY_TOKEN environment variable or use pulumi config set pagerduty:token --secret
affects: all
breakingUpgrading from v3 to v4 may require changes due to upstream Terraform provider schema changes.
fix
Review the upgrade guide at https://www.pulumi.com/registry/packages/pagerduty/installation-configuration/
affects: >=4.0.0
deprecatedSome resources like pagerduty.EscalationPolicy have deprecated fields (e.g., num_loops).
fix
Use the 'description' field instead of deprecated 'num_loops' if applicable.
affects: >=4.0.0
Errors
Common errors & fixes
ImportError: No module named 'pagerduty'
Using wrong import path: `import pagerduty` instead of `import pulumi_pagerduty`.
fix
Use `import pulumi_pagerduty as pagerduty`
pulumi.ConfigError: Missing required configuration key 'pagerduty:token'
PagerDuty API token not provided via config or environment variable.
fix
Set PAGERDUTY_TOKEN environment variable or run `pulumi config set pagerduty:token <token> --secret`
pulumi.errors.ResourceError: Error reading resource: unexpected EOF
PagerDuty API token is invalid or expired.
fix
Generate a new API token from PagerDuty console and update configuration.
Upgrade
Version history
4.31.4latest on PyPI · released Apr 30, 2026
Audit
Dependencies
pulumioptionalCore Pulumi SDK required for resource management
Agent activity
4 hits · last 30 days
node
4
Resources
pulumi-pagerduty — pip install pulumi-pagerduty · libregistry