terradart_time 0.35.0
terradart_time: ^0.35.0 copied to clipboard
TimeProvider and TimeSleep for the hashicorp/time Terraform provider — propagation waits for Dart-first Terraform stacks on any cloud.
terradart_time #
TimeProvider and TimeSleep for the hashicorp/time Terraform provider, for Dart-first Terraform stacks on any cloud.
TimeSleep waits after create (and optionally before destroy) to absorb eventual consistency: GCP API enablement propagation (terradart_google's enableApis adds one for you), AWS IAM role propagation, and the like.
Installation #
dependencies:
terradart_core: ^0.35.0
terradart_time: ^0.35.0
Usage #
import 'package:terradart_time/terradart_time.dart';
final class WaitStack extends Stack {
WaitStack() : super(providers: const [TimeProvider()]) {
add(
TimeSleep(
'wait',
createDuration: TfArg.duration(const Duration(seconds: 60)),
),
);
}
}
TimeProvider pins hashicorp/time at ~> 0.12 (kTimeProviderVersionConstraint). The pin is maintained by hand; no schema-bump automation tracks hashicorp/time.
Only time_sleep is wrapped. Open a feature request for time_static, time_offset or time_rotating.