Commit Graph

11 Commits

Author SHA1 Message Date
45840610ba feat!: upgrade to Cloudflare provider v5
The Cloudflare Terraform provider v5 is a ground-up rewrite with renamed
resources, changed attributes, and a new worker deployment model. This is
a breaking change requiring provider v5.x.

Resource migrations:
- cloudflare_record → cloudflare_dns_record (all 8 DNS records)
- value → content on all DNS records
- cloudflare_worker_script → cloudflare_worker + cloudflare_worker_version
  + cloudflare_workers_deployment (new 3-resource pattern)
- cloudflare_worker_route → cloudflare_workers_route, script_name → script
- cloudflare_workers_kv key → key_name
- data.cloudflare_zone: dropped account_id (no longer top-level in v5)
- smtp_tls record: added required ttl attribute
- mta-sts.js: converted from Service Worker to ES module format

State migration:
- moved blocks handle DNS record and route renames automatically
- Worker script (1→3 resources) requires manual state rm of the old
  cloudflare_worker_script resource

BREAKING CHANGE: Requires Cloudflare provider >= 5.0, < 6.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 17:37:38 +00:00
jimehbot[bot]
8094a369d4 chore(main): release 0.0.3 2026-02-02 15:38:11 +00:00
6da178a5d0 fix: specify minimum required terraform version (>= 1.1)
The module uses `nullable = false` on variables which requires
Terraform 1.1+. Without `required_version` set, users on older
versions would get confusing errors instead of a clear version
constraint message.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 15:19:36 +00:00
8bdc77a2c9 chore: automate README docs generation and formatting
Manual `terraform-docs markdown .` was fragile — no injection markers,
no idempotency check, and no consistent formatting pipeline.

Add terraform-docs inject mode with BEGIN/END_TF_DOCS markers in the
README so `terraform-docs .` regenerates only the managed section.
Wrap the injected block with prettier-ignore directives to prevent
prettier from reformatting tables (which would break terraform-docs
--output-check).

Restructure Makefile with three targets:
- `docs`: regenerate terraform-docs + prettier format README
- `fmt`: docs + terraform fmt -recursive
- `check`: verify all docs/formatting are current (CI-friendly)

Add node (LTS) and prettier to .mise.toml for markdown formatting.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 14:32:57 +00:00
0de0ea55dd docs(readme): fix truncated sentence in Google Workspace example
The sentence about MX records was cut off mid-thought, leaving readers
without the actionable advice to use the records given by Google.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 14:18:55 +00:00
52c89c91d2 chore: add mise config and regenerate terraform-docs
Add .mise.toml to pin terraform and terraform-docs tool versions.
Regenerate README.md via terraform-docs, which reformats the
input/output/requirement tables and escapes underscores in markdown
links.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 14:10:32 +00:00
1931ed281d docs(readme): expand Example Usage section with more details and examples 2023-04-26 02:48:41 +01:00
github-actions[bot]
3616fc221d chore(main): release 0.0.2 2023-04-26 00:31:23 +00:00
4a2a48a9e7 docs(readme): add Example Usage section 2023-04-26 01:27:13 +01:00
1691c6fa76 fix(docs): correctly describe mx variable 2023-04-26 01:27:13 +01:00
edbd57893b feat(module): initial implementation 2023-04-26 01:02:08 +01:00