mrfirdauss commited on
Commit
118bb68
·
1 Parent(s): 65d0826

try check param env

Browse files
Files changed (1) hide show
  1. server.py +4 -0
server.py CHANGED
@@ -29,11 +29,15 @@ def create_app() -> Flask:
29
 
30
  try:
31
  aws_param_path = os.getenv("AWS_PARAMETER_STORE_PATH")
 
32
  if aws_param_path:
33
  init_secret(aws_param_path)
34
  logging.info("Secrets loaded from AWS SSM Parameter Store.")
35
  except Exception as e:
36
  logging.exception(f"Could not load secrets from SSM: {e}")
 
 
 
37
 
38
  WORKER_API_KEY = os.getenv("WORKER_API_KEY")
39
 
 
29
 
30
  try:
31
  aws_param_path = os.getenv("AWS_PARAMETER_STORE_PATH")
32
+ print("AWS PARAM PATH:", aws_param_path)
33
  if aws_param_path:
34
  init_secret(aws_param_path)
35
  logging.info("Secrets loaded from AWS SSM Parameter Store.")
36
  except Exception as e:
37
  logging.exception(f"Could not load secrets from SSM: {e}")
38
+ print("ENV VARS:", dict(os.environ))
39
+ load_dotenv()
40
+ print("ENV VARS:", dict(os.environ))
41
 
42
  WORKER_API_KEY = os.getenv("WORKER_API_KEY")
43