Pulumi Time
raw JSON → 0.1.1 verified Fri May 01 auth: no python
A Pulumi package for creating and managing Time resources (e.g., static time offsets, sleep timers). Wraps Terraform's time provider. Current version: 0.1.1. Low release cadence, community-maintained via pulumiverse.
pip install pulumiverse-time Common errors
error ModuleNotFoundError: No module named 'pulumi_time' ↓
cause Wrong import name: PyPI package is 'pulumiverse-time', not 'pulumi-time'.
fix
pip uninstall pulumi-time && pip install pulumiverse-time; then use 'import pulumiverse_time'.
error ImportError: cannot import name 'StaticTime' from 'pulumiverse_time' ↓
cause Version too old (pre-0.0.16) or corrupted installation.
fix
Upgrade to latest: pip install --upgrade pulumiverse-time.
error pulumi.errors.ResourceConflictError: Duplicate resource URN ↓
cause Same logical name used twice in the same stack.
fix
Use unique names, e.g., 'time_static_1', 'time_static_2'.
Warnings
gotcha Import path: 'pip install pulumiverse-time' but import uses 'pulumiverse_time' (underscores). ↓
fix Use 'import pulumiverse_time as time'.
breaking Version 0.0.16 introduced the Sleep resource. Older code using only StaticTime remains compatible. ↓
fix No fix needed; new resource available.
gotcha Resource names inside Pulumi must be unique per stack; duplicate names cause errors. ↓
fix Use unique logical names or add suffixes.
gotcha The 'triggers' argument is a list of strings used for force-recreation. Omitting it may cause no-op updates. ↓
fix Provide at least one trigger string if you want updates to be applied.
Imports
- time wrong
from pulumi_time import *correctimport pulumiverse_time as time - StaticTime wrong
from pulumi_time.provider import StaticTimecorrectfrom pulumiverse_time import StaticTime - Sleep wrong
from pulumi_time import Sleepcorrectfrom pulumiverse_time import Sleep
Quickstart
import pulumi
import pulumiverse_time as time
example_static = time.StaticTime(
"example",
rfc3339="2023-01-01T00:00:00Z",
triggers=["first trigger"],
)
pulumi.export("example_output", example_static.rfc3339)