Skip to content

Commit 7bb3f3f

Browse files
authored
feat(grit): add account_id => account.id migration for cloudflare_zone
1 parent 59e25c6 commit 7bb3f3f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.grit/patterns/cloudflare_terraform_v5_attribute_renames_state.grit

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ pattern cloudflare_terraform_v5_attribute_renames_state() {
144144
$instances <: contains `"zone": $v` => `"name": $v`
145145
}
146146
},
147+
`{ "mode": "managed", "type": "$resource_type", $..., "instances":[$instances] }` where {
148+
and {
149+
$resource_type <: contains `cloudflare_zone`,
150+
$instances <: contains `"account_id": $v` => `"account": {
151+
"id": $v
152+
}`
153+
}
154+
},
147155

148156
// cloudflare_access_policy & cloudflare_zero_trust_access_group
149157
`{ "mode": "managed", "type": "$resource_type", $..., "instances":[$instances] }` where {

0 commit comments

Comments
 (0)