terradart_google 0.11.0 copy "terradart_google: ^0.11.0" to clipboard
terradart_google: ^0.11.0 copied to clipboard

Curated factory wrappers for 118 Google Cloud resources (Compute, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, Monitoring, ...) for Dart-first Terraform stacks.

example/main.dart

import 'dart:convert';

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

/// Minimal example: a single Pub/Sub topic, synthesized to Terraform JSON.
final class HelloStack extends Stack {
  HelloStack({required String projectId})
      : super(
          providers: [
            GoogleProvider(project: projectId, region: 'us-central1'),
          ],
        ) {
    add(GooglePubsubTopic(localName: 'hello', name: TfArg.literal('hello')));
  }
}

void main() {
  final result = HelloStack(projectId: 'YOUR-PROJECT-ID').synth();
  // ignore: avoid_print
  print(const JsonEncoder.withIndent('  ').convert(result.tfJson));
}
0
likes
0
points
694
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Curated factory wrappers for 118 Google Cloud resources (Compute, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, Monitoring, ...) for Dart-first Terraform stacks.

Repository (GitHub)
View/report issues

Topics

#terraform #infrastructure #codegen #google-cloud

License

unknown (license)

Dependencies

meta, terradart_core

More

Packages that depend on terradart_google