Skip to content
Open
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/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "random_id" "bucket" {

resource "digitalocean_spaces_bucket" "this" {
name = random_id.bucket.hex
region = var.region
region = var.storage_region
}

resource "digitalocean_spaces_bucket_policy" "this" {
Expand Down
1 change: 1 addition & 0 deletions terraform/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spaces_secret_access_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

## REQUIRED ##
region = "ams3"
storage_region = "ams3"
domain = "example.com"
timezone = "Europe/Amsterdam"
auth_user = "admin"
Expand Down
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ variable "region" {
type = string
}

variable "storage_region" {
description = "The region where the DO Space will be created."
type = string
}

variable "domain" {
description = "Domain name where the Supabase instance is accessible. The final domain will be of the format `supabase.example.com`"
type = string
Expand Down