terradart_core 0.4.0-dev copy "terradart_core: ^0.4.0-dev" to clipboard
terradart_core: ^0.4.0-dev copied to clipboard

terradart core runtime — Stack, Resource, Provider, Variable, Data, TfArg, TfRef, and LifecycleOptions for Dart-first Terraform synthesis.

example/main.dart

import 'dart:convert' as convert;

import 'package:terradart_core/terradart_core.dart';

/// Minimal example: empty Stack synth.
class EmptyStack extends Stack {
  EmptyStack() : super(providers: const []);

  @override
  Future<void> synth({required String outDir}) async =>
      throw UnimplementedError('use StackSynth.synth(...) directly');
}

void main() {
  final result = StackSynth.synth(EmptyStack());
  print(const convert.JsonEncoder.withIndent('  ').convert(result.tfJson));
}
0
likes
0
points
505
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

terradart core runtime — Stack, Resource, Provider, Variable, Data, TfArg, TfRef, and LifecycleOptions for Dart-first Terraform synthesis.

Repository (GitHub)
View/report issues

Topics

#terraform #infrastructure #codegen #google-cloud

License

unknown (license)

Dependencies

meta

More

Packages that depend on terradart_core