terradart_cloudflare 0.25.2 copy "terradart_cloudflare: ^0.25.2" to clipboard
terradart_cloudflare: ^0.25.2 copied to clipboard

Curated factory wrappers for Cloudflare resources (official cloudflare/cloudflare Terraform provider) for Dart-first Terraform stacks.

terradart_cloudflare #

Curated factory wrappers for Cloudflare resources (the official cloudflare/cloudflare Terraform provider), for Dart-first Terraform stacks.

Cloudflare's place in a Dart stack is the infrastructure edge around your app — the DNS zone and records that point a custom domain at Cloud Run, Firebase Hosting, or wherever your Dart backend lives. (This package does not put Dart on Workers; it declares the Cloudflare infrastructure your Dart app sits behind.)

Curated factories are added on request — if you need a resource that is not wrapped yet, open a feature request.

Secrets never appear in synth output. CloudflareProvider has no api_token / api_key / api_user_service_key parameters (every schema-sensitive attribute is structurally excluded); authenticate at apply time via CLOUDFLARE_API_TOKEN (recommended) or the other CLOUDFLARE_* environment variables.

import 'package:terradart_core/terradart_core.dart';
import 'package:terradart_cloudflare/provider.dart';
import 'package:terradart_cloudflare/zone.dart';
import 'package:terradart_cloudflare/dns.dart';

final class MyStack extends Stack {
  MyStack()
      : super(providers: [const CloudflareProvider()]) {
    final zone = CloudflareZone(
      localName: 'main',
      name: TfArg.literal('example.com'),
      account: TfArg.literal({'id': 'your-account-id'}),
    );
    add(zone);
    add(
      CloudflareDnsRecord(
        localName: 'api',
        zoneId: TfArg.ref(zone.id),
        name: TfArg.literal('api.example.com'),
        type: TfArg.literal('CNAME'),
        ttl: TfArg.literal(1),
        content: TfArg.literal('ghs.googlehosted.com'),
        proxied: TfArg.literal(true),
      ),
    );
  }
}

Curated surface: cloudflare_zone (zone barrel), cloudflare_dns_record (dns barrel). Provider pinned at 5.23.0 (exact — no automated bump lane; bumps are deliberate, together with a fixture re-extraction).

Generated by the same maintainer pipeline as terradart_google (terradart wrap against a filtered fixture); do not hand-edit files under lib/src/.

1
likes
0
points
328
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Curated factory wrappers for Cloudflare resources (official cloudflare/cloudflare Terraform provider) for Dart-first Terraform stacks.

Repository (GitHub)
View/report issues

Topics

#terraform #infrastructure #codegen #cloudflare

License

unknown (license)

Dependencies

meta, terradart_core

More

Packages that depend on terradart_cloudflare