
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
pulumi-time
Advanced tools
A Pulumi provider for managing time-based resources and operations, dynamically bridged from the Terraform Time provider with support for delays, offsets, rotations, and time-based scheduling.
A Pulumi provider for managing time-based resources and operations, dynamically bridged from the Terraform Time Provider.
This package provides a Pulumi provider that enables you to manage time-based resources and operations using TypeScript, JavaScript, Python, Go, or C#. The provider is automatically generated from the Terraform Time provider, giving you access to all its functionality within the Pulumi ecosystem.
npm install pulumi-time
yarn add pulumi-time
pnpm add pulumi-time
The Time provider typically doesn't require explicit configuration as it operates on time-based calculations. However, you can customize behavior through provider options if needed.
You can configure the provider in several ways:
import * as time from 'pulumi-time'
const provider = new time.Provider('time-provider', {
// Provider-specific options if any
})
import * as time from 'pulumi-time'
// Add a 30-second delay before proceeding
const delay = new time.Sleep('deployment-delay', {
createDuration: '30s',
})
// Use the delay as a dependency for other resources
const myResource = new SomeResource(
'my-resource',
{
// resource configuration
},
{
dependsOn: [delay],
},
)
import * as time from 'pulumi-time'
// Rotate every 30 days
const rotation = new time.Rotating('secret-rotation', {
rotationDays: 30,
})
// Use the rotation time for certificate or secret renewal
const certificate = new SomeCertificate('my-cert', {
validityPeriod: rotation.id,
// other certificate configuration
})
import * as time from 'pulumi-time'
// Create a static timestamp for consistent references
const timestamp = new time.Static('deployment-timestamp', {
// The timestamp will be set when the resource is created
})
// Use the timestamp in resource tags or metadata
const resource = new SomeResource('tagged-resource', {
tags: {
'deployment-time': timestamp.unix,
'deployment-rfc3339': timestamp.rfc3339,
},
})
import * as time from 'pulumi-time'
// Calculate a future time offset
const futureTime = new time.Offset('maintenance-window', {
offsetDays: 7,
offsetHours: 2,
})
// Use for scheduling maintenance windows or expiration times
const maintenanceSchedule = new SomeSchedule('maintenance', {
startTime: futureTime.rfc3339,
// other scheduling configuration
})
import * as time from 'pulumi-time'
// Step 1: Initial delay
const initialDelay = new time.Sleep('initial-setup-delay', {
createDuration: '10s',
})
// Step 2: Create timestamp after delay
const setupTimestamp = new time.Static(
'setup-timestamp',
{},
{
dependsOn: [initialDelay],
},
)
// Step 3: Set up rotation schedule
const certRotation = new time.Rotating('cert-rotation', {
rotationDays: 90,
rotationHours: 2, // Rotate at 2 AM
})
// Step 4: Use all time resources together
const secureResource = new SomeSecureResource(
'secure-app',
{
deploymentTime: setupTimestamp.rfc3339,
rotationSchedule: certRotation.id,
// other configuration
},
{
dependsOn: [initialDelay],
},
)
For detailed API documentation, please refer to the Pulumi Registry documentation or the generated TypeScript definitions in your IDE.
You can find more examples in the examples directory or check out these common use cases:
This provider is a derived work of the Terraform Provider distributed under MPL 2.0.
If you encounter a bug or missing feature, please consult the source terraform-provider-time repo.
For Pulumi-specific issues, please open an issue in the pulumi-any-terraform repository.
This package is distributed under the MIT License. The underlying Terraform provider is distributed under MPL 2.0.
FAQs
A Pulumi provider for managing time-based resources and operations, dynamically bridged from the Terraform Time provider with support for delays, offsets, rotations, and time-based scheduling.
The npm package pulumi-time receives a total of 4 weekly downloads. As such, pulumi-time popularity was classified as not popular.
We found that pulumi-time demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.