2024-12-18 19:52:54 +01:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
minio = {
|
|
|
|
source = "aminueza/minio"
|
|
|
|
version = "3.2.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider minio {
|
|
|
|
minio_server = "files.ghoscht.com"
|
|
|
|
minio_ssl = true
|
|
|
|
minio_user = local.envs["MINIO_USER"]
|
|
|
|
minio_password = local.envs["MINIO_PASSWORD"]
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "minio_s3_bucket" "assets" {
|
|
|
|
bucket = "homepage-assets"
|
2025-01-01 19:21:55 +01:00
|
|
|
acl = "private"
|
2024-12-18 19:52:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "minio_s3_bucket" "source" {
|
|
|
|
bucket = "homepage-source"
|
2025-01-01 19:21:55 +01:00
|
|
|
acl = "private"
|
2024-12-18 19:52:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
output "minio_url" {
|
|
|
|
value = "${minio_s3_bucket.assets.bucket_domain_name}"
|
|
|
|
}
|