mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 22:14:02 +00:00
38 lines
893 B
HCL
38 lines
893 B
HCL
locals {
|
|
name_prefix = "${var.service_prefix}-${var.environment}"
|
|
|
|
common_labels = merge(
|
|
{
|
|
environment = var.environment
|
|
managed_by = "terraform"
|
|
project = "household-bot"
|
|
},
|
|
var.labels
|
|
)
|
|
|
|
artifact_location = coalesce(var.artifact_repository_location, var.region)
|
|
|
|
runtime_secret_ids = toset(compact([
|
|
var.telegram_webhook_secret_id,
|
|
var.scheduler_shared_secret_id,
|
|
var.supabase_url_secret_id,
|
|
var.supabase_publishable_key_secret_id
|
|
]))
|
|
|
|
api_services = toset([
|
|
"artifactregistry.googleapis.com",
|
|
"cloudscheduler.googleapis.com",
|
|
"iam.googleapis.com",
|
|
"iamcredentials.googleapis.com",
|
|
"run.googleapis.com",
|
|
"secretmanager.googleapis.com",
|
|
"sts.googleapis.com"
|
|
])
|
|
|
|
github_deploy_roles = toset([
|
|
"roles/artifactregistry.writer",
|
|
"roles/iam.serviceAccountUser",
|
|
"roles/run.admin"
|
|
])
|
|
}
|