Skip to content
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

Update cloudflare/cloudflare requirement from ~> 3.0.0 to ~> 4.26.0 #64

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .terraform-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
min-required
1.7.4
5 changes: 3 additions & 2 deletions mta-sts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ locals {
resource "cloudflare_worker_script" "mta-sts" {
for_each = local.email_domain_zones

name = "mta-sts-${replace(each.value.zone, ".", "-")}"
content = <<EOC
account_id = var.cloudflare_account_id
name = "mta-sts-${replace(each.value.zone, ".", "-")}"
content = <<EOC
async function handleRequest(request) {
return new Response(`${local.mta_sts_content}`, {
headers: {
Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ variable "aws_iam_path_prefix" {
default = ""
}

variable "cloudflare_account_id" {
type = string
}

# Remove once https://github.com/cloudflare/terraform-provider-cloudflare/issues/1921
variable "cloudflare_workers_subdomain" {
description = "Cloudflare account <subdomain>.workers.dev - https://dash.cloudflare.com/workers/subdomain"
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ terraform {
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0.0"
version = "~> 4.26.0"
}
random = {
source = "hashicorp/random"
}
}
required_version = "~> 1.0"
required_version = "~> 1.7"
}
Loading