mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Align prod schema and deploy tooling
This commit is contained in:
1 parent
d2db86ec7f
commit
7e2e723880
105 files changed
+19014
-131
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Local .terraform directories
|
||||
.terraform/
|
||||
|
||||
# Terraform state files
|
||||
*.tfstate
|
||||
*.tfstate.*
|
||||
|
||||
# Crash log files
|
||||
crash.log
|
||||
crash.*.log
|
||||
|
||||
# Exclude override files as they are usually used to override resources locally
|
||||
override.tf
|
||||
override.tf.json
|
||||
*_override.tf
|
||||
*_override.tf.json
|
||||
|
||||
# Ignore CLI configuration files
|
||||
.terraformrc
|
||||
terraform.rc
|
||||
|
||||
# Sensitive variable files
|
||||
*.tfvars
|
||||
!terraform.tfvars.example
|
||||
|
||||
# Provider lock files (comment out if you want to track)
|
||||
# .terraform.lock.hcl
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
# This file is maintained automatically by "terraform init".
|
||||
# Manual edits may be lost in future updates.
|
||||
|
||||
provider "registry.terraform.io/supabase/supabase" {
|
||||
version = "1.6.1"
|
||||
constraints = "~> 1.0"
|
||||
hashes = [
|
||||
"h1:qQoXMVMdUp4Id9eKYPyTp52t6RchV38rXF10ayMeeNs=",
|
||||
"zh:115437eb15451558b47984155e6e34fb18d85635f7d57a12f5933aa99231ca90",
|
||||
"zh:1403a3be401cc746cbfbaac11f2b5f5f492b4a1142441b380895b20a4ca700f1",
|
||||
"zh:4087e7238f2a1e930f3798c83c5544947f5096803d9132f0694e4036ee6228cc",
|
||||
"zh:4d9effb75c41409700d325fd715d39cb135f958c7442e32d1686f13928e94de7",
|
||||
"zh:575dcc18f686fa3aefd40e5f668e075dc2a4b628804b1f0eba0ba2bad299476d",
|
||||
"zh:5a95fa37e0eb126721c2187dd389f63c09640082cd50cc521a0dfe898eea683c",
|
||||
"zh:6e20a8faa09627a9ef0b7c9950af7da93c69d682fe3bfd930807db0b58aa59a1",
|
||||
"zh:757a8da9f8fafcd2aa9ecb9f4cb2773567090313c736ee95d3fa41bd92535538",
|
||||
"zh:890df766e9b839623b1f0437355032a3c006226a6c200cd911e15ee1a9014e9f",
|
||||
"zh:a815c20e132981abbda986b60445f9786bfd5dd3254bcb52d52e9e31cd105a04",
|
||||
"zh:c665269e5474a7144ec88bb3849dacea2f1c720500e86f84279d4318806044a8",
|
||||
"zh:da054f0bb9bb7432c4f5c66093262566e99403f5e4a5d72853873359472d7c1c",
|
||||
"zh:de584088b3d86ec1889dd719406783f9f3698df0a91007741a156f313bf61aa7",
|
||||
"zh:e83615654ce2c82b1a243c79cc53c29214e7fd81fb286a7e3befb35d5a1c3492",
|
||||
"zh:ed2f7545a8217ab2eae2cf9447c6b7b1ec660764ae764c08b033f5e3800a5608",
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
# Non-Production Environment (Staging/Development)
|
||||
#
|
||||
# Supabase project: itbzhrvlgvdmzbnhzhyx
|
||||
# URL: https://itbzhrvlgvdmzbnhzhyx.supabase.co
|
||||
#
|
||||
# Use this environment to test Terraform changes before applying to production.
|
||||
|
||||
module "supabase" {
|
||||
source = "../../modules/supabase"
|
||||
|
||||
project_ref = "itbzhrvlgvdmzbnhzhyx"
|
||||
is_production = false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
output "environment" {
|
||||
description = "Environment name"
|
||||
value = "non-production"
|
||||
}
|
||||
|
||||
output "project_ref" {
|
||||
description = "Supabase project reference"
|
||||
value = module.supabase.project_ref
|
||||
}
|
||||
|
||||
output "project_url" {
|
||||
description = "Supabase project URL"
|
||||
value = module.supabase.project_url
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
variable "supabase_access_token" {
|
||||
description = "Supabase API access token"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
terraform {
|
||||
required_version = ">= 1.0"
|
||||
|
||||
required_providers {
|
||||
supabase = {
|
||||
source = "supabase/supabase"
|
||||
version = "~> 1.0"
|
||||
}
|
||||
}
|
||||
|
||||
# Store state remotely (recommended for team environments)
|
||||
# Uncomment and configure one of these backends:
|
||||
|
||||
# Option 1: Terraform Cloud
|
||||
# cloud {
|
||||
# organization = "your-org"
|
||||
# workspaces {
|
||||
# name = "sauci-non-prod"
|
||||
# }
|
||||
# }
|
||||
|
||||
# Option 2: S3 backend
|
||||
# backend "s3" {
|
||||
# bucket = "your-terraform-state-bucket"
|
||||
# key = "sauci/non-prod/terraform.tfstate"
|
||||
# region = "us-east-1"
|
||||
# }
|
||||
}
|
||||
|
||||
provider "supabase" {
|
||||
access_token = var.supabase_access_token
|
||||
}
|
||||
Reference in new issue
Block a user