Skip to content

Commit

Permalink
Fix argument account_id required
Browse files Browse the repository at this point in the history
  • Loading branch information
OJFord committed Mar 12, 2024
1 parent 1e83da1 commit 5aa7c4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 5aa7c4a

Please sign in to comment.