From 2f6d5a3cda2ebd148dccd40e0bfbf06b7c3fccf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Wed, 13 Dec 2023 17:33:16 +0000 Subject: [PATCH] wip --- terraform/main.tf | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index 3ff9b8f7..435bede4 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -77,15 +77,23 @@ module "ecs_app" { }, { name = "FILESYSTEM_DISK" - value = "s3" + value = "s3private" }, { - name = "MEDIA_DISK" - value = "s3" + name = "FILESYSTEM_DISK_PUBLIC" + value = "s3public" }, { - name = "FILAMENT_FILESYSTEM_DRIVER" - value = "s3" + name = "AWS_BUCKET" + value = module.s3_private.bucket + }, + { + name = "AWS_PUBLIC_BUCKET" + value = module.s3_public.bucket + }, + { + name = "AWS_PUBLIC_URL" + value = "https://www.${var.domain_name}/media" }, { name = "SENTRY_TRACES_SAMPLE_RATE"