How is the `Pulumiverse.Time.Rotating` resource su...
# general
g
How is the
Pulumiverse.Time.Rotating
resource supposed to work? https://www.pulumi.com/registry/packages/time/api-docs/rotating/ I am interpreting the documentation as follows: If I create a rotating resource, and specify that the
RotationMinutes = 1
, the first time I run
pulumi up
, a new resource will be created. If I wait two minutes, then run
pulumi up
again, the resource will be re-created with a new
Rfc3339
value.
Copy code
Rotating resource = new("one-minute", new()
	{
		RotationMinutes = 1,
	});
The actual behavior I see is that the resource remains unchanged even after waiting the two minutes. I am using dotnet and the 0.0.15 version of the Pulumiverse.Time provider.
The default value of
RotationYears
,
RotationMonths
,
RotationDays
, and
RotationHours
are all null. If I try to set each of those properties to
0
, I get the following error:
Copy code
Diagnostics:
  time:index:Rotating (one-minute):
    error: time:index/rotating:Rotating resource 'one-minute' has a problem: expected rotation_days to be at least (1), got 0. Examine values at 'Rotating.RotationDays'.
    error: time:index/rotating:Rotating resource 'one-minute' has a problem: expected rotation_hours to be at least (1), got 0. Examine values at 'Rotating.RotationHours'.
    error: time:index/rotating:Rotating resource 'one-minute' has a problem: expected rotation_months to be at least (1), got 0. Examine values at 'Rotating.RotationMonths'.
    error: time:index/rotating:Rotating resource 'one-minute' has a problem: expected rotation_years to be at least (1), got 0. Examine values at 'Rotating.RotationYears'.