Skip to content

Commit adba156

Browse files
chore: update changelog (#6480)
1 parent 9cc9eee commit adba156

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

CHANGELOG.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,32 @@
44

55
Full Changelog: [v5.12.0...v5.13.0](https://github.com/cloudflare/terraform-provider-cloudflare/compare/v5.12.0...v5.13.0)
66

7-
### ⚠ BREAKING CHANGES
7+
### ⚠ BREAKING CHANGES: cloudflare_api_token & cloudflare_account_token Schema Update
8+
9+
The 5.13 release includes major updates to the cloudflare_api_token resource to eliminate configuration drift caused by policy ordering differences in the Cloudflare API.
10+
11+
Fixes: cloudflare/terraform-provider-cloudflare#6092
12+
13+
**Whats changed**
14+
- policies are now a Set; order is ignored to prevent drift.
15+
- When defining a policy, resources must use jsonencode(); all policy resource values must now be JSON-encoded strings.
16+
- Removed fields: id, name, and meta have been removed from policy blocks.
17+
18+
**Required Action (v5.13+)**
19+
Customers looking to upgrade to v5.13+ must update all cloudflare_api_token & cloudflare_account_token resources to wrap policy resource values in jsonencode()
20+
21+
Before:
22+
```
23+
resources = {
24+
"com.cloudflare.api.account.${var.cf_account_id}" = "*"
25+
}
26+
```
27+
After:
28+
```
29+
resources = jsonencode({
30+
"com.cloudflare.api.account.${var.cf_account_id}" = "*"
31+
})
32+
```
833

934
* **account_token:** token policy order and nested resources ([#6440](https://github.com/cloudflare/terraform-provider-cloudflare/issues/6440))
1035

0 commit comments

Comments
 (0)