terradart_time 0.31.0 copy "terradart_time: ^0.31.0" to clipboard
terradart_time: ^0.31.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 #

pub: terradart_time Dart SDK License: Apache-2.0

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 Apis.enable adds one for you), AWS IAM role propagation, and the like.

Installation #

dependencies:
  terradart_core: ^0.31.x
  terradart_time: ^0.31.x

Usage #

import 'package:terradart_core/terradart_core.dart';
import 'package:terradart_time/terradart_time.dart';

final class WaitStack extends Stack {
  WaitStack() : super(providers: const [TimeProvider()]) {
    add(
      TimeSleep(
        localName: '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.

1
likes
0
points
360
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

TimeProvider and TimeSleep for the hashicorp/time Terraform provider — propagation waits for Dart-first Terraform stacks on any cloud.

Repository (GitHub)
View/report issues

Topics

#terraform #infrastructure

License

unknown (license)

Dependencies

meta, terradart_core

More

Packages that depend on terradart_time