Skip to content

Commit

Permalink
PLT-0 - Drop support for version parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Engerim committed Dec 27, 2024
1 parent c42f56d commit e7202a9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
git diff --quiet || { echo "Build Changes"; git diff; git status; false; }
env:
TARGET: ${{ matrix.target }}
RETRIES: 20
RETRIES: 1
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
}
retry make test
env:
RETRIES: 20
RETRIES: 1
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This Terraform module manages Cloudflare Rulesets.

| Name | Version |
|------|---------|
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | ~> 4.20 |
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | ~> 4.48 |

<!-- TFDOCS_PROVIDER_END -->

Expand All @@ -28,7 +28,7 @@ This Terraform module manages Cloudflare Rulesets.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.3 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | ~> 4.20 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | ~> 4.48 |

<!-- TFDOCS_REQUIREMENTS_END -->

Expand Down Expand Up @@ -114,8 +114,7 @@ list(object({
ruleset = optional(string)
# phase: http_request_firewall_managed, action: block, challenge, js_challenge, log, managed_challenge, skip
id = optional(string)
version = optional(string)
id = optional(string)
overrides = optional(object({
action = optional(string)
categories = optional(list(object({
Expand Down
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ resource "cloudflare_ruleset" "this" {
products = action_parameters.value.products

# http_request_firewall_managed
id = action_parameters.value.id
version = action_parameters.value.version
id = action_parameters.value.id
dynamic "overrides" {
for_each = rules.value.action_parameters.overrides[*]
content {
Expand Down
3 changes: 1 addition & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ variable "rules" {
ruleset = optional(string)

# phase: http_request_firewall_managed, action: block, challenge, js_challenge, log, managed_challenge, skip
id = optional(string)
version = optional(string)
id = optional(string)
overrides = optional(object({
action = optional(string)
categories = optional(list(object({
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.20"
version = "~> 4.48"
}
}
required_version = "~> 1.3"
Expand Down

0 comments on commit e7202a9

Please sign in to comment.