Skip to content
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
3 changes: 2 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ resource "digitalocean_database_cluster" "postgres" {
tags = var.tags
}

# Database firewall - allow App Platform apps
# Database firewall - centralized here since mlb-stats owns the cluster.
# Add other apps (e.g. gif-clipper) via additional_trusted_sources.
resource "digitalocean_database_firewall" "postgres_fw" {
cluster_id = digitalocean_database_cluster.postgres.id

Expand Down
7 changes: 7 additions & 0 deletions terraform/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ ga_measurement_id = "G-XXXXXXXXXX"
# new_relic_api_key = "your-new-relic-license-key"
# new_relic_account_id = "your-account-id"

# Shared Database Access (optional)
# Grant other apps access to the managed database cluster.
# Get app IDs with: doctl apps list
# additional_trusted_sources = [
# { type = "app", value = "your-gif-clipper-app-id" },
# ]

# Optional: Override defaults
# app_name = "mlb-stats"
# region = "nyc"
Expand Down
1 change: 1 addition & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ variable "new_relic_account_id" {
type = string
default = ""
}

Loading