Repository navigation
chore(deps): update terraform cloudflare to v5 #1836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ terraform { | |
| required_providers { | ||
| cloudflare = { | ||
| source = "cloudflare/cloudflare" | ||
| version = "~>4.46" | ||
| version = "~> 5.0" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [blocking · correctness] Migrate both name-based zone lookups Both Pages modules still configure Suggested fix Change both zone lookups to Prompt for a coding agent |
||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ terraform { | |
| required_providers { | ||
| cloudflare = { | ||
| source = "cloudflare/cloudflare" | ||
| version = "~>4.46" | ||
| version = "~> 5.0" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [blocking · correctness] Rename the Pages custom-domain argument for v5 The existing Suggested fix Rename the Pages domain resource's Prompt for a coding agentThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [blocking · correctness] Migrate the DNS record resource and its outputs domain.tf still manages Suggested fix Rename the resource and its references, use Prompt for a coding agent |
||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ terraform { | |
| required_providers { | ||
| cloudflare = { | ||
| source = "cloudflare/cloudflare" | ||
| version = "~> 4.46" | ||
| version = "~> 5.0" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [blocking · correctness] Migrate the R2 permission-group lookup main.tf still uses Suggested fix Use the v5 permission-groups list data source and resolve the read/write IDs from its result entries, preserving the R2 scope restriction and aliased provider. Prompt for a coding agentThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [blocking · correctness] Convert the bucket token policy and conditions to v5 The token resource in main.tf retains v4's Suggested fix Convert the token to the v5 policies/object schema, JSON-encode the bucket resource map, explicitly set Prompt for a coding agent |
||
| configuration_aliases = [cloudflare.api_keys] | ||
| } | ||
| onepassword = { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[blocking · correctness] Convert the Pages build configuration to a v5 object
The project still declares
build_config { ... }in project.tf. Cloudflare v5 defines this as a single nested attribute, so selecting v5 makes Terraform reject the block and prevents planning this module.Suggested fix
Convert project.tf's block to
build_config = { ... }, retaining the analytics fields and existing build-caching lifecycle exclusion.Prompt for a coding agent