mirror of
https://github.com/immich-app/devtools.git
synced 2026-09-30 13:23:00 +08:00
OpenTofu held one hand-made discord webhook read by the cloudflare R2 billing alerts. Create that webhook in the discord/community module instead and consume its url via remote state, the same way grafana already does — no manual secret at all. cloudflare_notification_policy_webhooks.secret is optional and Cloudflare formats the payload for discord urls, so it's dropped. Github held only push-o-matic-app, an SSH-key item duplicating credentials the github-app module already manages as GITHUB_APP_IMMICH_PUSH_O_MATIC in tf. The provider can't create SSH-key items, so rather than copy it, point the four PUSH_O_MATIC_* org secrets at the existing tf item. Its pkcs8 field is a like-for-like swap for the old .private_key, which is also PKCS#8. Adds the missing client_id to the github-app module (appended last so the positional field indices in convert_certificate/converted/certificates stay valid). Also drops two dead 'OpenTofu' vault data sources that nothing referenced.
16 lines
280 B
HCL
16 lines
280 B
HCL
terraform {
|
|
source = "../../../../../"
|
|
|
|
extra_arguments custom_vars {
|
|
commands = get_terraform_commands_that_need_vars()
|
|
}
|
|
}
|
|
|
|
include "root" {
|
|
path = find_in_parent_folders("root.hcl")
|
|
}
|
|
|
|
dependencies {
|
|
paths = ["../api-keys", "../../../scoped/discord/community"]
|
|
}
|