From 7fc117a41abc1d8654ac6b34b5c4f3386de21f0c Mon Sep 17 00:00:00 2001 From: sloane Date: Fri, 30 Aug 2024 17:16:22 -0400 Subject: [PATCH] chore: use SIGNS_UI_S3_BUCKET environment variable References the new environment variable from https://github.com/mbta/devops/pull/2129 instead of deriving this value based on `ENVIRONMENT_NAME` --- config/runtime.exs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 1f5154c14..5c1fec053 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -17,21 +17,13 @@ if config_env() == :prod do dsn: System.get_env("SENTRY_DSN"), environment_name: eb_env_name - signs_ui_s3_bucket = - case eb_env_name do - "screens-prod" -> "mbta-signs" - "screens-dev" -> "mbta-signs-dev" - "screens-dev-green" -> "mbta-signs-dev" - _ -> nil - end - config :screens, ScreensWeb.Endpoint, http: [:inet6, port: String.to_integer(System.get_env("PORT") || "4000")], secret_key_base: System.get_env("SECRET_KEY_BASE") config :screens, environment_name: eb_env_name, - signs_ui_s3_bucket: signs_ui_s3_bucket, + signs_ui_s3_bucket: System.fetch_env!("SIGNS_UI_S3_BUCKET"), screenplay_fullstory_org_id: System.get_env("SCREENPLAY_FULLSTORY_ORG_ID") config :screens, ScreensWeb.AuthManager, secret_key: System.get_env("SCREENS_AUTH_SECRET")