feat(terraform): add S3 storage bucket and credentials for Peitho
This commit is contained in:
@@ -164,3 +164,33 @@ output "mnemosyne_s3_credentials" {
|
||||
}
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
# S3 bucket for Peitho file storage (document versions + converted Office files)
|
||||
resource "incus_storage_bucket" "peitho" {
|
||||
name = "peitho"
|
||||
pool = var.storage_pool
|
||||
project = var.project_name
|
||||
description = "Peitho document storage bucket"
|
||||
|
||||
depends_on = [incus_project.ouranos]
|
||||
}
|
||||
|
||||
# Access key for Peitho S3 bucket
|
||||
resource "incus_storage_bucket_key" "peitho_key" {
|
||||
name = "peitho-access"
|
||||
pool = incus_storage_bucket.peitho.pool
|
||||
storage_bucket = incus_storage_bucket.peitho.name
|
||||
project = var.project_name
|
||||
role = "admin"
|
||||
}
|
||||
|
||||
output "peitho_s3_credentials" {
|
||||
description = "Peitho S3 bucket credentials - store in vault as vault_peitho_s3_*"
|
||||
value = {
|
||||
bucket = incus_storage_bucket.peitho.name
|
||||
access_key = incus_storage_bucket_key.peitho_key.access_key
|
||||
secret_key = incus_storage_bucket_key.peitho_key.secret_key
|
||||
endpoint = "https://${incus_storage_bucket.peitho.location}"
|
||||
}
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user