mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
25 lines
416 B
HCL
25 lines
416 B
HCL
|
terraform {
|
||
|
source = "."
|
||
|
|
||
|
extra_arguments custom_vars {
|
||
|
commands = get_terraform_commands_that_need_vars()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
include {
|
||
|
path = find_in_parent_folders("state.hcl")
|
||
|
}
|
||
|
|
||
|
locals {
|
||
|
prefix_name = get_env("TF_VAR_prefix_name")
|
||
|
}
|
||
|
|
||
|
remote_state {
|
||
|
backend = "pg"
|
||
|
|
||
|
config = {
|
||
|
conn_str = get_env("TF_STATE_POSTGRES_CONN_STR")
|
||
|
schema_name = "prod_cloudflare_immich_app_docs_${local.prefix_name}"
|
||
|
}
|
||
|
}
|