terradart_google_beta 0.35.0 copy "terradart_google_beta: ^0.35.0" to clipboard
terradart_google_beta: ^0.35.0 copied to clipboard

Curated factory wrappers for beta-only Google Cloud resources (hashicorp/google-beta) for Dart-first Terraform stacks.

example/main.dart

import 'dart:convert';

import 'package:terradart_google_beta/terradart_google_beta.dart';

/// Minimal example: enable Firebase on an existing GCP project (a
/// beta-only resource), synthesized to Terraform JSON.
final class HelloBetaStack extends Stack {
  HelloBetaStack({required String projectId})
    : super(
        providers: [
          GoogleBetaProvider(project: projectId, region: 'us-central1'),
        ],
      ) {
    add(GoogleFirebaseProject('firebase', project: .literal(projectId)));
  }
}

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

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Curated factory wrappers for beta-only Google Cloud resources (hashicorp/google-beta) for Dart-first Terraform stacks.

Repository (GitHub)
View/report issues
Contributing

Topics

#terraform #infrastructure #codegen #google-cloud

License

Apache-2.0 (license)

Dependencies

meta, terradart_core, terradart_google

More

Packages that depend on terradart_google_beta